Struct IpCounters

Source
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,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<I: Default + IpCountersIpExt, C: Default + CounterRepr> Default for IpCounters<I, C>
where I::RxCounters<C>: Default,

Source§

fn default() -> IpCounters<I, C>

Returns the “default value” for a type. Read more
Source§

impl<I: IpCountersIpExt, C: CounterRepr, IpType> GenericOverIp<IpType> for IpCounters<I, C>
where IpType: IpCountersIpExt + Ip,

Source§

type Type = IpCounters<IpType, C>

The type of Self when its IP-generic parameter is replaced with the type NewIp.
Source§

impl<I: IpCountersIpExt, C: CounterRepr> Inspectable for IpCounters<I, C>

Source§

fn record<II: Inspector>(&self, inspector: &mut II)

Records this value into inspector.

Auto Trait Implementations§

§

impl<I, C> Freeze for IpCounters<I, C>
where C: Freeze, <I as IpCountersIpExt>::RxCounters<C>: Freeze,

§

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>
where C: Send, <I as IpCountersIpExt>::RxCounters<C>: Send,

§

impl<I, C> Sync for IpCounters<I, C>
where C: Sync, <I as IpCountersIpExt>::RxCounters<C>: Sync,

§

impl<I, C> Unpin for IpCounters<I, C>
where C: Unpin, <I as IpCountersIpExt>::RxCounters<C>: Unpin,

§

impl<I, C> UnwindSafe for IpCounters<I, C>
where C: UnwindSafe, <I as IpCountersIpExt>::RxCounters<C>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<O, BC> BuildableCoreContext<BC> for O
where O: Default,

Source§

type Builder = ()

The builder type that can build this core context.
Source§

fn build(_bindings_ctx: &mut BC, _: ()) -> O

Consumes this builder and returns the context.
§

impl<T, D> Encode<Ambiguous1, D> for T
where D: ResourceDialect,

§

unsafe fn encode( self, _encoder: &mut Encoder<'_, D>, _offset: usize, _depth: Depth, ) -> Result<(), Error>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more
§

impl<T, D> Encode<Ambiguous2, D> for T
where D: ResourceDialect,

§

unsafe fn encode( self, _encoder: &mut Encoder<'_, D>, _offset: usize, _depth: Depth, ) -> Result<(), Error>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<CC, BC, Meta> RecvFrameContext<Meta, BC> for CC
where Meta: ReceivableFrameMeta<CC, BC>,

Source§

fn receive_frame<B>(&mut self, bindings_ctx: &mut BC, metadata: Meta, frame: B)
where B: BufferMut + Debug,

Receive a frame. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<CC, BC, Meta> SendFrameContext<BC, Meta> for CC
where Meta: SendableFrameMeta<CC, BC>,

Source§

fn send_frame<S>( &mut self, bindings_ctx: &mut BC, metadata: Meta, frame: S, ) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>
where S: Serializer, <S as Serializer>::Buffer: BufferMut,

Send a frame. Read more
Source§

impl<Id, CC, BC> TimerHandler<BC, Id> for CC
where BC: TimerBindingsTypes, Id: HandleableTimer<CC, BC>,

Source§

fn handle_timer( &mut self, bindings_ctx: &mut BC, dispatch: Id, timer: <BC as TimerBindingsTypes>::UniqueTimerId, )

Handle a timer firing. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<L, T> UnlockedAccess<L> for T
where L: UnlockedAccessMarkerFor<T>,

§

type Data = <L as UnlockedAccessMarkerFor<T>>::Data

The type of state being accessed.
§

type Guard<'l> = &'l <L as UnlockedAccessMarkerFor<T>>::Data where T: 'l

A guard providing read access to the data.
§

fn access(&self) -> <T as UnlockedAccess<L>>::Guard<'_>

How to access the state.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<B, A> LockBefore<B> for A
where B: LockAfter<A>,

Source§

impl<T1, T2> TestOnlyFrom<T1> for T2

Source§

impl<T> TestOnlyPartialEq for T