pub struct Ndmsg {
pub ndm_family: RtAddrFamily,
pub ndm_index: c_int,
pub ndm_state: NudFlags,
pub ndm_flags: NtfFlags,
pub ndm_type: Rtn,
pub rtattrs: RtBuffer<Nda, Buffer>,
/* private fields */
}
Expand description
Represents an ARP (neighbor table) entry
Fields§
§ndm_family: RtAddrFamily
Address family of entry
ndm_index: c_int
Index of entry
ndm_state: NudFlags
State of entry
ndm_flags: NtfFlags
Flags for entry
ndm_type: Rtn
Type of entry
rtattrs: RtBuffer<Nda, Buffer>
Payload of Rtattr
s
Implementations§
Trait Implementations§
source§impl<'lifetime> FromBytesWithInput<'lifetime> for Ndmsg
impl<'lifetime> FromBytesWithInput<'lifetime> for Ndmsg
source§impl Header for Ndmsg
impl Header for Ndmsg
source§fn header_size() -> usize
fn header_size() -> usize
Return the size in bytes of the data structure header.
source§impl Size for Ndmsg
impl Size for Ndmsg
source§fn unpadded_size(&self) -> usize
fn unpadded_size(&self) -> usize
Size of the unpadded data structure. This will usually
only be unaligned for variable length types like
strings or byte buffers.
source§fn padded_size(&self) -> usize
fn padded_size(&self) -> usize
Get the size of of the payload and align it to
the required netlink byte alignment.