Home | History | Annotate | Download | only in lib

Lines Matching refs:netlink

2  * lib/msg.c		Netlink Messages Interface
15 * Netlink Message Construction/Parsing Interface
21 * Netlink messages consist of a byte stream with one or multiple
22 * Netlink headers and an associated payload. If the payload is too big
23 * to fit into a single message it, can be split over multiple Netlink
26 * Netlink header flag set, except for the last header which has the
27 * Netlink header type \c NLMSG_DONE.
30 * The Netlink message header (\link nlmsghdr struct nlmsghdr\endlink) is shown below.
46 * The netlink message header and payload must be aligned properly:
67 * alignment and formatting rules depening on the specific netlink
78 * @par The ACK Netlink Message
87 * | Netlink message header |
92 * | OLD Netlink message header |
98 * // Various methods exist to create/allocate a new netlink
101 * // nlmsg_alloc() will allocate an empty netlink message with
111 * // Alternatively an existing netlink message header can be used
119 * // Last but not least, netlink messages received from netlink sockets
122 * // length of the existing netlink message, therefore no more data can
129 * // NLMSG_ALIGNTO to ensure proper netlink message padding.
161 #include <netlink-local.h>
162 #include <netlink/netlink.h>
163 #include <netlink/utils.h>
164 #include <netlink/cache.h>
165 #include <netlink/attr.h>
181 * length of netlink message not including padding
190 * length of netlink message including padding
216 * @arg nlh netlink messsage header
230 * @arg nlh netlink message header
246 * @arg nlh netlink message header
257 * @arg nlh netlink message header
281 * check if the netlink message fits into the remaining bytes
282 * @arg nlh netlink message header
293 * next netlink message in message stream
294 * @arg nlh netlink message header
297 * @returns the next netlink message in the message stream and
310 * parse attributes of a netlink message
311 * @arg nlh netlink message header
330 * nlmsg_find_attr - find a specific attribute in a netlink message
331 * @arg nlh netlink message header
344 * nlmsg_validate - validate a netlink message including attributes
396 * Allocate a new netlink message with the default maximum payload size.
398 * Allocates a new netlink message without any further payload. The
402 * @return Newly allocated netlink message or NULL.
410 * Allocate a new netlink message with maximum payload size specified.
418 * Allocate a new netlink message and inherit netlink message header
419 * @arg hdr Netlink message header template
421 * Allocates a new netlink message and inherits the original message
423 * the netlink message header, otherwise the header is left blank.
425 * @return Newly allocated netlink message or NULL
445 * Allocate a new netlink message
446 * @arg nlmsgtype Netlink message type
449 * @return Newly allocated netlink message or NULL.
479 * Convert a netlink message received from a netlink socket to a nl_msg
480 * @arg hdr Netlink message received from netlink socket.
482 * Allocates a new netlink message and copies all of the data pointed to
485 * @return Newly allocated netlink message or NULL.
504 * Reserve room for additional data in a netlink message
505 * @arg n netlink message
510 * existing netlink message. Eventual padding required will
539 * Append data to tail of a netlink message
540 * @arg n netlink message
545 * Extends the netlink message as needed and appends the data of given
565 * Expand maximum payload size of a netlink message
566 * @arg n Netlink message.
569 * Reallocates the payload section of a netlink message and increases
596 * Add a netlink message header to a netlink message
597 * @arg n netlink message
598 netlink process id or NL_AUTO_PID
604 * Adds or overwrites the netlink message header in an existing message
609 * @return A pointer to the netlink message header or NULL.
625 NL_DBG(2, "msg %p: Added netlink header type=%d, flags=%d, pid=%d, "
636 * Return actual netlink message
637 * @arg n netlink message
639 * Returns the actual netlink message casted to the type of the netlink
642 * @return A pointer to the netlink message.
650 * Acquire a reference on a netlink message
661 * Release a reference from an netlink message
743 * @name Netlink Message Type Translations
768 * @name Netlink Message Flags Translations
970 "-------------------------- BEGIN NETLINK MESSAGE "
1015 "--------------------------- END NETLINK MESSAGE "