Struct netlink_packet_route::rtnl::neighbour::NeighbourHeader
source · 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§
source§impl Clone for NeighbourHeader
impl Clone for NeighbourHeader
source§fn clone(&self) -> NeighbourHeader
fn clone(&self) -> NeighbourHeader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NeighbourHeader
impl Debug for NeighbourHeader
source§impl Default for NeighbourHeader
impl Default for NeighbourHeader
source§fn default() -> NeighbourHeader
fn default() -> NeighbourHeader
Returns the “default value” for a type. Read more
source§impl Emitable for NeighbourHeader
impl Emitable for NeighbourHeader
source§impl<T: AsRef<[u8]>> Parseable<NeighbourMessageBuffer<T>> for NeighbourHeader
impl<T: AsRef<[u8]>> Parseable<NeighbourMessageBuffer<T>> for NeighbourHeader
source§fn parse(buf: &NeighbourMessageBuffer<T>) -> Result<Self, DecodeError>
fn parse(buf: &NeighbourMessageBuffer<T>) -> Result<Self, DecodeError>
Deserialize the current type.
source§impl PartialEq<NeighbourHeader> for NeighbourHeader
impl PartialEq<NeighbourHeader> for NeighbourHeader
source§fn eq(&self, other: &NeighbourHeader) -> bool
fn eq(&self, other: &NeighbourHeader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for NeighbourHeader
impl StructuralEq for NeighbourHeader
impl StructuralPartialEq for NeighbourHeader
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more