4 #ifdef __LINUX_NETLINK_H
5 #define _UAPI__LINUX_NETLINK_H
8 #ifndef _UAPI__LINUX_NETLINK_H
9 #define _UAPI__LINUX_NETLINK_H
72 #define NLM_F_REQUEST 1
101 #define NLM_F_ROOT 0x100
106 #define NLM_F_MATCH 0x200
113 #define NLM_F_ATOMIC 0x400
118 #define NLM_F_DUMP (NLM_F_ROOT|NLM_F_MATCH)
131 #define NLM_F_REPLACE 0x100
136 #define NLM_F_EXCL 0x200
141 #define NLM_F_CREATE 0x400
146 #define NLM_F_APPEND 0x800
159 #define NLMSG_NOOP 0x1
166 #define NLMSG_ERROR 0x2
171 #define NLMSG_DONE 0x3
176 #define NLMSG_OVERRUN 0x4
181 #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)