nlmsghdr
nlmsghdr is the standard header used by netlink messages in the Linux kernel and user-space netlink interfaces. It prefixes the payload of a netlink message and identifies how the message should be interpreted by the receiving end. The header is defined in linux/netlink.h and is used across various netlink families, such as NETLINK_ROUTE and NETLINK_GENERIC.
The structure consists of five fields. nlmsg_len is a 32-bit value that gives the total length of
The header’s length field includes the header; the actual payload starts after the header and is interpreted
nlmsghdr plays a central role in kernel-to-user and user-to-kernel communication via netlink sockets. It provides a