
Netlink Protocol Library Suite (libnl) - infradead.org
2025年2月3日 · Netlink Protocol Library Suite (libnl) Summary. The libnl suite is a collection of libraries providing APIs to netlink protocol based Linux kernel interfaces. Netlink is a IPC mechanism primarly between the kernel and user space processes.
Netlink Library (libnl) - infradead.org
The following example shows how to check for a specific version of libnl. If found, it extends the CFLAGS and LIBS variable appropriately: PKG_CHECK_MODULES ( LIBNL3 , libnl - 3.0 >= 3.1 , [ have_libnl3 = yes ], [ have_libnl3 = no ]) if ( test "${have_libnl3}" = "yes" ); then CFLAGS += "$LIBNL3_CFLAGS" LIBS += "$LIBNL3_LIBS" fi
libnl: Main Page - infradead.org
The core library libnl provides a fundamental set of functions to deal with sockets, construct messages, and send/receive those messages. Additional high level interfaces for several individual netlink protocols are provided in separate libraries (e.g. "nl-route", "nl-genl", ...).
Documentation Overview - libnl Suite - infradead.org
Netlink Library (libnl) Socket handling, sending and receiving, message construction and parsing, … Routing Family Library (libnl-route) Adresses, links, neighbours, routing, traffic control, neighbour tables, … Netfilter Library (libnl-nf) Connection tracking, logging, queueing Generic Netlink Library (libnl-genl)
libnl: Send & Receive Data - infradead.org
2024年2月3日 · This function finalizes a Netlink message by completing the message with desirable flags and values depending on the socket configuration. If not yet filled out, the source address of the message (nlmsg_pid) will be set to the local port number of the socket.If not yet specified, the next available sequence number is assigned to the message (nlmsg_seq).
Routing Family Netlink Library (libnl-route) - infradead.org
Address Family (8bit) The address family is usually set to AF_UNSPEC but may be specified in RTM_GETLINK requests to limit the returned links to a specific address family.. Link Layer Type (16bit) Currently only used in kernel→user messages to report the link layer type of a link.
libnl: Generic Netlink Library (libnl-genl) - infradead.org
2024年2月3日 · Sending Data: int genl_send_simple (struct nl_sock *sk, int family, int cmd, int version, int flags): Send a Generic Netlink message consisting only of a header. More...
libnl: Callbacks/Customization - infradead.org
2024年2月3日 · Enumerator; NL_CB_VALID : Message is valid. NL_CB_FINISH : Last message in a series of multi part messages received. NL_CB_OVERRUN : Report received that data was lost.
libnl: Message Construction & Parsing - infradead.org
2024年2月3日 · Attributes: void nlmsg_set_proto (struct nl_msg *msg, int protocol): int nlmsg_get_proto (struct nl_msg *msg): size_t nlmsg_get_max_size (struct nl_msg *msg): void ...
libnl: Utilities - infradead.org
Converts the specified size as character to the corresponding number of bytes. Supported formats are: b,kb/k,m/mb,gb/g for bytes; bit,kbit/mbit/gbit
- 某些结果已被删除