Expand description
This module contains generic netlink parsing data structures.
This is all handled by the Genlmsghdr
header struct which contains all of the information needed for
the generic netlink layer.
§Design decisions
The generic netlink attrs
field has been changed to a
GenlBuffer
of Nlattr
s instead of the
original Vec<u8>
to allow simpler parsing at the top
level when one Nlattr
structure is not
nested within another, a use case that is instead handled using
AttrHandle
.
Structs§
- Attr
Type - The infomation packed into
nla_type
field ofnlattr
for the C data structure. - Attr
Type Builder - Builder for
AttrType
. - Genlmsghdr
- Struct representing generic netlink header and payload
- Genlmsghdr
Builder - Builder for
Genlmsghdr
. - Nlattr
- Struct representing netlink attributes and payloads
- Nlattr
Builder - Builder for
Nlattr
. - NoUser
Header - Struct indicating that no user header is in the generic netlink packet.
Enums§
- Attr
Type Builder Error - Error type for AttrTypeBuilder
- Genlmsghdr
Builder Error - Error type for GenlmsghdrBuilder
- Nlattr
Builder Error - Error type for NlattrBuilder
Type Aliases§
- Genl
Attr Handle - Type representing a generic netlink attribute handle.