[][src]Struct nc::sk_reuseport_md_t

#[repr(C)]
pub struct sk_reuseport_md_t {
    pub data: bpf_md_ptr_t,
    pub data_end: bpf_md_end_ptr_t,
    pub len: u32,
    pub eth_protocol: u32,
    pub ip_protocol: u32,
    pub bind_inany: u32,
    pub hash: u32,
}

Fields

data: bpf_md_ptr_t

Start of directly accessible data. It begins from the tcp/udp header.

data_end: bpf_md_end_ptr_t

End of directly accessible data

len: u32

Total length of packet (starting from the tcp/udp header). Note that the directly accessible bytes (data_end - data) could be less than this "len". Those bytes could be indirectly read by a helper "bpf_skb_load_bytes()".

eth_protocol: u32

Eth protocol in the mac header (network byte order). e.g. ETH_P_IP(0x0800) and ETH_P_IPV6(0x86DD)

ip_protocol: u32

IP protocol. e.g. IPPROTO_TCP, IPPROTO_UDP

bind_inany: u32

Is sock bound to an INANY address?

hash: u32

A hash of the packet 4 tuples

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]