pub struct IpCounters<I: IpCountersIpExt, C: CounterRepr = Counter> {Show 27 fields
pub deliver_unicast: C,
pub deliver_multicast: C,
pub dispatch_receive_ip_packet: C,
pub dispatch_receive_ip_packet_other_host: C,
pub receive_ip_packet: C,
pub send_ip_packet: C,
pub forwarding_disabled: C,
pub forward: C,
pub no_route_to_host: C,
pub mtu_exceeded: C,
pub ttl_expired: C,
pub receive_icmp_error: C,
pub fragment_reassembly_error: C,
pub need_more_fragments: C,
pub invalid_fragment: C,
pub fragment_cache_full: C,
pub parameter_problem: C,
pub unspecified_destination: C,
pub unspecified_source: C,
pub invalid_source: C,
pub dropped: C,
pub tx_illegal_loopback_address: C,
pub version_rx: I::RxCounters<C>,
pub multicast_no_interest: C,
pub invalid_cached_conntrack_entry: C,
pub fragmentation: FragmentationCounters<C>,
pub socket_egress_filter_dropped: C,
}
Expand description
Ip layer counters.
Fields§
§deliver_unicast: C
Count of incoming IP unicast packets delivered.
deliver_multicast: C
Count of incoming IP multicast packets delivered.
dispatch_receive_ip_packet: C
Count of incoming IP packets that are dispatched to the appropriate protocol.
dispatch_receive_ip_packet_other_host: C
Count of incoming IP packets destined to another host.
receive_ip_packet: C
Count of incoming IP packets received by the stack.
send_ip_packet: C
Count of sent outgoing IP packets.
forwarding_disabled: C
Count of packets to be forwarded which are instead dropped because forwarding is disabled.
forward: C
Count of incoming packets forwarded to another host.
no_route_to_host: C
Count of incoming packets which cannot be forwarded because there is no route to the destination host.
mtu_exceeded: C
Count of incoming packets which cannot be forwarded because the MTU has been exceeded.
ttl_expired: C
Count of incoming packets which cannot be forwarded because the TTL has expired.
receive_icmp_error: C
Count of ICMP error messages received.
fragment_reassembly_error: C
Count of IP fragment reassembly errors.
need_more_fragments: C
Count of IP fragments that could not be reassembled because more fragments were needed.
invalid_fragment: C
Count of IP fragments that could not be reassembled because the fragment was invalid.
fragment_cache_full: C
Count of IP fragments that could not be reassembled because the stack’s per-IP-protocol fragment cache was full.
parameter_problem: C
Count of incoming IP packets not delivered because of a parameter problem.
unspecified_destination: C
Count of incoming IP packets with an unspecified destination address.
unspecified_source: C
Count of incoming IP packets with an unspecified source address.
invalid_source: C
Count of incoming IP packets with an invalid source address.
See the definitions of net_types::ip::Ipv4SourceAddr
and
net_types::ip::Ipv6SourceAddr
for the exact requirements.
dropped: C
Count of incoming IP packets dropped.
tx_illegal_loopback_address: C
Number of frames rejected because they’d cause illegal loopback addresses on the wire.
version_rx: I::RxCounters<C>
Version specific rx counters.
multicast_no_interest: C
Count of incoming IP multicast packets that were dropped because The stack doesn’t have any sockets that belong to the multicast group, and the stack isn’t configured to forward the multicast packet.
invalid_cached_conntrack_entry: C
Count of looped-back packets that held a cached conntrack entry that could not be downcasted to the expected type. This would happen if, for example, a packet was modified to a different IP version between EGRESS and INGRESS.
fragmentation: FragmentationCounters<C>
IP fragmentation counters.
socket_egress_filter_dropped: C
Number of packets filtered out by the socket egress filter.
Trait Implementations§
Source§impl<I: Debug + IpCountersIpExt, C: Debug + CounterRepr> Debug for IpCounters<I, C>where
I::RxCounters<C>: Debug,
impl<I: Debug + IpCountersIpExt, C: Debug + CounterRepr> Debug for IpCounters<I, C>where
I::RxCounters<C>: Debug,
Source§impl<I: Default + IpCountersIpExt, C: Default + CounterRepr> Default for IpCounters<I, C>where
I::RxCounters<C>: Default,
impl<I: Default + IpCountersIpExt, C: Default + CounterRepr> Default for IpCounters<I, C>where
I::RxCounters<C>: Default,
Source§fn default() -> IpCounters<I, C>
fn default() -> IpCounters<I, C>
Source§impl<I: IpCountersIpExt, C: CounterRepr, IpType> GenericOverIp<IpType> for IpCounters<I, C>where
IpType: IpCountersIpExt + Ip,
impl<I: IpCountersIpExt, C: CounterRepr, IpType> GenericOverIp<IpType> for IpCounters<I, C>where
IpType: IpCountersIpExt + Ip,
Source§type Type = IpCounters<IpType, C>
type Type = IpCounters<IpType, C>
Self
when its IP-generic parameter is replaced with the
type NewIp
.Source§impl<I: IpCountersIpExt, C: CounterRepr> Inspectable for IpCounters<I, C>
impl<I: IpCountersIpExt, C: CounterRepr> Inspectable for IpCounters<I, C>
Auto Trait Implementations§
impl<I, C> Freeze for IpCounters<I, C>
impl<I, C> RefUnwindSafe for IpCounters<I, C>where
C: RefUnwindSafe,
<I as IpCountersIpExt>::RxCounters<C>: RefUnwindSafe,
impl<I, C> Send for IpCounters<I, C>
impl<I, C> Sync for IpCounters<I, C>
impl<I, C> Unpin for IpCounters<I, C>
impl<I, C> UnwindSafe for IpCounters<I, C>where
C: UnwindSafe,
<I as IpCountersIpExt>::RxCounters<C>: UnwindSafe,
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
Source§impl<O, BC> BuildableCoreContext<BC> for Owhere
O: Default,
impl<O, BC> BuildableCoreContext<BC> for Owhere
O: Default,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more