libmnl
1.0.4
|
Modules | |
Netlink message batch helpers | |
Variables | |
void * | mnl_nlmsg_batch::buf |
size_t | mnl_nlmsg_batch::limit |
size_t | mnl_nlmsg_batch::buflen |
void * | mnl_nlmsg_batch::cur |
bool | mnl_nlmsg_batch::overflow |
Netlink message:
|<----------------- 4 bytes ------------------->| |<----- 2 bytes ------>|<------- 2 bytes ------>| |-----------------------------------------------| | Message length (including header) | |-----------------------------------------------| | Message type | Message flags | |-----------------------------------------------| | Message sequence number | |-----------------------------------------------| | Netlink PortID | |-----------------------------------------------| | | . Payload . |_______________________________________________|
There is usually an extra header after the the Netlink header (at the beginning of the payload). This extra header is specific of the Netlink subsystem. After this extra header, it comes the sequence of attributes that are expressed in Type-Length-Value (TLV) format.