#[repr(u16)]
pub enum NfAttrType {
Show 19 variants PacketHdr, Mark, Timestamp, IfIndexInDev, IfIndexOutDev, IfIndexPhysInDev, IfIndexPhysOutDev, HwAddr, Payload, Prefix, Uid, Seq, SeqGlobal, Gid, HwType, HwHeader, HwLen, Ct, CtInfo,
}
Available on crate feature data only.

Variants§

§

PacketHdr

packet header structure: hardware protocol (2 bytes), nf hook (1 byte), padding (1 byte)

§

Mark

packet mark value from the skbuff for the packet

§

Timestamp

packet time stamp structure: seconds (8 bytes), microseconds (8 bytes)

§

IfIndexInDev

32-bit ifindex of the device on which the packet was received, which could be a bridge group

§

IfIndexOutDev

32-bit ifindex of the device on which the packet was sent, which could be a bridge group

§

IfIndexPhysInDev

32-bit ifindex of the physical device on which the packet was received, which is not a bridge group

§

IfIndexPhysOutDev

32-bit ifindex of the physical device on which the packet was sent, which is not a bridge group

§

HwAddr

hardware address structure: address length (2 bytes), padding (1 byte), address (8 bytes)

§

Payload

packet payload following the link-layer header

§

Prefix

null-terminated text string

§

Uid

32-bit ifindex of the device on which the packet was received, which could be a bridge group

§

Seq

32-bit sequence number for packets provided by this nflog device

§

SeqGlobal

32-bit sequence number for packets provided by all nflog devices

§

Gid

32-bit group ID that owned the socket on which the packet was sent or received

§

HwType

32-bit Linux ARPHRD_ value for the device associated with the skbuff for the packet

§

HwHeader

MAC-layer header for the skbuff for the packet

§

HwLen

length of the MAC-layer header

§

Ct

conntrack header (nfnetlink_conntrack.h)

§

CtInfo

enum ip_conntrack_info

Trait Implementations§

source§

impl Clone for NfAttrType

source§

fn clone(&self) -> NfAttrType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Copy for NfAttrType

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. 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 Twhere 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> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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 Twhere U: TryFrom<T>,

§

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.