1 #ifndef __LINUX_NETLINK_H 2 #define __LINUX_NETLINK_H 65 #define NLM_F_REQUEST 1 94 #define NLM_F_ROOT 0x100 99 #define NLM_F_MATCH 0x200 106 #define NLM_F_ATOMIC 0x400 111 #define NLM_F_DUMP (NLM_F_ROOT|NLM_F_MATCH) 124 #define NLM_F_REPLACE 0x100 129 #define NLM_F_EXCL 0x200 134 #define NLM_F_CREATE 0x400 139 #define NLM_F_APPEND 0x800 152 #define NLMSG_NOOP 0x1 159 #define NLMSG_ERROR 0x2 164 #define NLMSG_DONE 0x3 169 #define NLMSG_OVERRUN 0x4 174 #define NLMSG_MIN_TYPE 0x10 uint16_t nlmsg_type
Message type (content type)
uint32_t nlmsg_seq
Sequence number.
int error
Error code (errno number)
uint32_t nlmsg_len
Length of message including header.
uint32_t nl_pid
Unique process ID.
unsigned short nl_pad
Padding (unused)
uint32_t nl_groups
Multicast group subscriptions.
uint32_t nlmsg_pid
Netlink PID of the proccess sending the message.
uint16_t nlmsg_flags
Message flags.
struct nlmsghdr msg
Original netlink message causing the error.
sa_family_t nl_family
socket family (AF_NETLINK)