pub enum CommunityResponsePolicy {
Exact,
AllowMismatchFromTarget,
AllowMismatchFromAnySource,
}Expand description
Policy for correlating SNMPv1/v2c responses whose community was rewritten.
Response versions always have to match. UDP strict-source checking is an independent control and, when enabled, rejects every off-target response.
Variants§
Exact
Require byte-for-byte equality with the request community.
AllowMismatchFromTarget
Accept a rewritten community only from the configured target.
An off-target response whose community matches exactly remains accepted when UDP strict-source checking is disabled.
AllowMismatchFromAnySource
Accept a rewritten community from any source.
With permissive UDP source checking this explicitly accepts both peer and community mismatches and therefore weakens spoof resistance.
Trait Implementations§
Source§impl Clone for CommunityResponsePolicy
impl Clone for CommunityResponsePolicy
Source§fn clone(&self) -> CommunityResponsePolicy
fn clone(&self) -> CommunityResponsePolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CommunityResponsePolicy
Source§impl Debug for CommunityResponsePolicy
impl Debug for CommunityResponsePolicy
Source§impl Default for CommunityResponsePolicy
impl Default for CommunityResponsePolicy
Source§fn default() -> CommunityResponsePolicy
fn default() -> CommunityResponsePolicy
Returns the “default value” for a type. Read more
impl Eq for CommunityResponsePolicy
Source§impl PartialEq for CommunityResponsePolicy
impl PartialEq for CommunityResponsePolicy
impl StructuralPartialEq for CommunityResponsePolicy
Auto Trait Implementations§
impl Freeze for CommunityResponsePolicy
impl RefUnwindSafe for CommunityResponsePolicy
impl Send for CommunityResponsePolicy
impl Sync for CommunityResponsePolicy
impl Unpin for CommunityResponsePolicy
impl UnsafeUnpin for CommunityResponsePolicy
impl UnwindSafe for CommunityResponsePolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.