#include <netlink-local.h>#include <netlink/netlink.h>#include <netlink/utils.h>#include <netlink/handlers.h>#include <netlink/msg.h>#include <netlink/attr.h>
Functions | |
Connection Management | |
| int | nl_connect (struct nl_sock *sk, int protocol) |
| Create and connect netlink socket. More... | |
| void | nl_close (struct nl_sock *sk) |
| Close/Disconnect netlink socket. More... | |
Send | |
| int | nl_sendto (struct nl_sock *sk, void *buf, size_t size) |
| Send raw data over netlink socket. More... | |
| int | nl_sendmsg (struct nl_sock *sk, struct nl_msg *msg, struct msghdr *hdr) |
| Send netlink message with control over sendmsg() message header. More... | |
| int | nl_send_iovec (struct nl_sock *sk, struct nl_msg *msg, const struct iovec *iov, unsigned iovlen) |
| Send netlink message. More... | |
| int | nl_send (struct nl_sock *sk, struct nl_msg *msg) |
| Send netlink message. More... | |
| void | nl_auto_complete (struct nl_sock *sk, struct nl_msg *msg) |
| int | nl_send_auto_complete (struct nl_sock *sk, struct nl_msg *msg) |
| Send netlink message and check & extend header values as needed. More... | |
| int | nl_send_simple (struct nl_sock *sk, int type, int flags, void *buf, size_t size) |
| Send simple netlink message using nl_send_auto_complete() More... | |
Receive | |
| #define | NL_CB_CALL(cb, type, msg) |
| int | nl_recv (struct nl_sock *sk, struct sockaddr_nl *nla, unsigned char **buf, struct ucred **creds) |
| Receive data from netlink socket. More... | |
| int | nl_recvmsgs (struct nl_sock *sk, struct nl_cb *cb) |
| Receive a set of messages from a netlink socket. More... | |
| int | nl_recvmsgs_default (struct nl_sock *sk) |
| Receive a set of message from a netlink socket using handlers in nl_sock. More... | |
| int | nl_wait_for_ack (struct nl_sock *sk) |
| Wait for ACK. More... | |