Struct netlink_packet_route::rtnl::neighbour::NeighbourHeader [−][src]
pub struct NeighbourHeader {
pub family: u8,
pub ifindex: u32,
pub state: u16,
pub flags: u8,
pub ntype: u8,
}
Expand description
Neighbour headers have the following structure:
0 8 16 24 32
+----------------+----------------+----------------+----------------+
| family | padding |
+----------------+----------------+----------------+----------------+
| link index |
+----------------+----------------+----------------+----------------+
| state | flags | ntype |
+----------------+----------------+----------------+----------------+
NeighbourHeader
exposes all these fields.
Fields
family: u8
ifindex: u32
state: u16
Neighbour cache entry state. It should be set to one of the
NUD_*
constants
flags: u8
Neighbour cache entry flags. It should be set to a combination
of the NTF_*
constants
ntype: u8
Neighbour cache entry type. It should be set to one of the
NDA_*
constants.
Trait Implementations
Returns the “default value” for a type. Read more
Deserialize the current type.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for NeighbourHeader
impl Send for NeighbourHeader
impl Sync for NeighbourHeader
impl Unpin for NeighbourHeader
impl UnwindSafe for NeighbourHeader
Blanket Implementations
Mutably borrows from an owned value. Read more