Enum NfAttrType

Source
#[repr(u16)]
pub enum NfAttrType {
Show 19 variants PacketHdr = 1, Mark = 2, Timestamp = 3, IfIndexInDev = 4, IfIndexOutDev = 5, IfIndexPhysInDev = 6, IfIndexPhysOutDev = 7, HwAddr = 8, Payload = 9, Prefix = 10, Uid = 11, Seq = 12, SeqGlobal = 13, Gid = 14, HwType = 15, HwHeader = 16, HwLen = 17, Ct = 18, CtInfo = 19,
}
Available on crate feature data only.

Variants§

§

PacketHdr = 1

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

§

Mark = 2

packet mark value from the skbuff for the packet

§

Timestamp = 3

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

§

IfIndexInDev = 4

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

§

IfIndexOutDev = 5

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

§

IfIndexPhysInDev = 6

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

§

IfIndexPhysOutDev = 7

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

§

HwAddr = 8

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

§

Payload = 9

packet payload following the link-layer header

§

Prefix = 10

null-terminated text string

§

Uid = 11

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

§

Seq = 12

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

§

SeqGlobal = 13

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

§

Gid = 14

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

§

HwType = 15

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

§

HwHeader = 16

MAC-layer header for the skbuff for the packet

§

HwLen = 17

length of the MAC-layer header

§

Ct = 18

conntrack header (nfnetlink_conntrack.h)

§

CtInfo = 19

enum ip_conntrack_info

Trait Implementations§

Source§

impl Clone for NfAttrType

Source§

fn clone(&self) -> NfAttrType

Returns a duplicate 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 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<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

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 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.