pub struct Ifaddrmsg {
pub ifa_family: RtAddrFamily,
pub ifa_prefixlen: c_uchar,
pub ifa_flags: IfaFFlags,
pub ifa_scope: c_uchar,
pub ifa_index: c_int,
pub rtattrs: RtBuffer<Ifa, Buffer>,
}
Expand description
Struct representing interface address messages
Fields§
§ifa_family: RtAddrFamily
Interface address family
ifa_prefixlen: c_uchar
Interface address prefix length
ifa_flags: IfaFFlags
Interface address flags
ifa_scope: c_uchar
Interface address scope
ifa_index: c_int
Interface address index
rtattrs: RtBuffer<Ifa, Buffer>
Payload of Rtattr
s
Trait Implementations§
source§impl<'lifetime> FromBytesWithInput<'lifetime> for Ifaddrmsg
impl<'lifetime> FromBytesWithInput<'lifetime> for Ifaddrmsg
source§impl Header for Ifaddrmsg
impl Header for Ifaddrmsg
source§fn header_size() -> usize
fn header_size() -> usize
Return the size in bytes of the data structure header.
source§impl Size for Ifaddrmsg
impl Size for Ifaddrmsg
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.