1 #ifndef __LINUX_NETLINK_H
2 #define __LINUX_NETLINK_H
5 * Netlink socket address
10 /** socket family (AF_NETLINK) */
11 sa_family_t nl_family
;
13 /** Padding (unused) */
14 unsigned short nl_pad
;
16 /** Unique process ID */
19 /** Multicast group subscriptions */
24 * Netlink message header
30 * Length of message including header.
35 * Message type (content type)
50 * Netlink PID of the proccess sending the message.
56 * @name Standard message flags
61 * Must be set on all request messages (typically from user space to
65 #define NLM_F_REQUEST 1
68 * Indicates the message is part of a multipart message terminated
74 * Request for an acknowledgment on success.
86 * @name Additional message flags for GET requests
91 * Return the complete table instead of a single entry.
94 #define NLM_F_ROOT 0x100
97 * Return all entries matching criteria passed in message content.
99 #define NLM_F_MATCH 0x200
102 * Return an atomic snapshot of the table being referenced. This
103 * may require special privileges because it has the potential to
104 * interrupt service in the FE for a longer time.
106 #define NLM_F_ATOMIC 0x400
111 #define NLM_F_DUMP (NLM_F_ROOT|NLM_F_MATCH)
116 * @name Additional messsage flags for NEW requests
121 * Replace existing matching config object with this request.
124 #define NLM_F_REPLACE 0x100
127 * Don't replace the config object if it already exists.
129 #define NLM_F_EXCL 0x200
132 * Create config object if it doesn't already exist.
134 #define NLM_F_CREATE 0x400
137 * Add to the end of the object list.
139 #define NLM_F_APPEND 0x800
144 * @name Standard Message types
149 * No operation, message must be ignored
152 #define NLMSG_NOOP 0x1
155 * The message signals an error and the payload contains a nlmsgerr
156 * structure. This can be looked at as a NACK and typically it is
159 #define NLMSG_ERROR 0x2
162 * Message terminates a multipart message.
164 #define NLMSG_DONE 0x3
167 * The message signals that data got lost
169 #define NLMSG_OVERRUN 0x4
172 * Lower limit of reserved message types
174 #define NLMSG_MIN_TYPE 0x10
179 * Netlink error message
184 /** Error code (errno number) */
187 /** Original netlink message causing the error */
196 #endif /* __LINUX_NETLINK_H */
This page took 0.056639 seconds and 5 git commands to generate.