[][src]Struct nc::types::bpf_sock_t

#[repr(C)]
pub struct bpf_sock_t {
    pub bound_dev_if: u32,
    pub family: u32,
    pub type_: u32,
    pub protocol: u32,
    pub mark: u32,
    pub priority: u32,
    pub src_ip4: u32,
    pub src_ip6: [u32; 4],
    pub src_port: u32,
    pub dst_port: u32,
    pub dst_ip4: u32,
    pub dst_ip6: [u32; 4],
    pub state: u32,
}

Fields

bound_dev_if: u32family: u32type_: u32protocol: u32mark: u32priority: u32src_ip4: u32

IP address also allows 1 and 2 bytes access

src_ip6: [u32; 4]src_port: u32

host byte order

dst_port: u32

network byte order

dst_ip4: u32dst_ip6: [u32; 4]state: u32

Auto Trait Implementations

impl Unpin for bpf_sock_t

impl Send for bpf_sock_t

impl Sync for bpf_sock_t

Blanket Implementations

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> From<T> for 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]