[][src]Struct netlink_packet_route::NetlinkHeader

pub struct NetlinkHeader {
    pub length: u32,
    pub message_type: u16,
    pub flags: u16,
    pub sequence_number: u32,
    pub port_number: u32,
}

A Netlink header representation. A netlink header has the following structure:

0                8                16              24               32
+----------------+----------------+----------------+----------------+
|                 packet length (including header)                  |
+----------------+----------------+----------------+----------------+
|          message type           |              flags              |
+----------------+----------------+----------------+----------------+
|                           sequence number                         |
+----------------+----------------+----------------+----------------+
|                   port number (formerly known as PID)             |
+----------------+----------------+----------------+----------------+

Fields

length: u32

Length of the netlink packet, including the header and the payload

message_type: u16

NetlinkMessage type. The meaning of this field depends on the netlink protocol family in use.

flags: u16

Flags. It should be set to one of the NLM_F_* constants.

sequence_number: u32

Sequence number of the packet

port_number: u32

Port number (usually set to the the process ID)

Trait Implementations

impl Clone for NetlinkHeader[src]

impl Copy for NetlinkHeader[src]

impl Debug for NetlinkHeader[src]

impl Default for NetlinkHeader[src]

impl Emitable for NetlinkHeader[src]

impl Eq for NetlinkHeader[src]

impl Hash for NetlinkHeader[src]

impl<'a, T> Parseable<NetlinkBuffer<&'a T>> for NetlinkHeader where
    T: AsRef<[u8]> + ?Sized
[src]

impl PartialEq<NetlinkHeader> for NetlinkHeader[src]

impl StructuralEq for NetlinkHeader[src]

impl StructuralPartialEq for NetlinkHeader[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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