|
VSF Documented
|
#include "../sys/socket.h"Go to the source code of this file.
Data Structures | |
| struct | sockaddr_nl |
| struct | nlmsghdr |
| struct | nlmsgerr |
Macros | |
| #define | NLMSG_NOOP 0x1 |
| #define | NLMSG_ERROR 0x2 |
| #define | NLMSG_DONE 0x3 |
| #define | NLMSG_OVERRUN 0x4 |
| #define | NETLINK_ROUTE 0 |
| #define | NLMSG_ALIGNTO 4U |
| #define | NLMSG_ALIGN(len) (((len) + NLMSG_ALIGNTO - 1) & ~(NLMSG_ALIGNTO - 1)) |
| #define | NLMSG_HDRLEN ((int)NLMSG_ALIGN(sizeof(struct nlmsghdr))) |
| #define | NLMSG_LENGTH(len) ((len) + NLMSG_HDRLEN) |
| #define | NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len)) |
| #define | NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0))) |
| #define | NLMSG_NEXT(nlh, len) |
| #define | NLMSG_OK(nlh, len) |
| #define | NLMSG_PAYLOAD(nlh, len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) |
| #define NLMSG_NOOP 0x1 |
| #define NLMSG_ERROR 0x2 |
| #define NLMSG_DONE 0x3 |
| #define NLMSG_OVERRUN 0x4 |
| #define NETLINK_ROUTE 0 |
| #define NLMSG_ALIGNTO 4U |
| #define NLMSG_ALIGN | ( | len | ) | (((len) + NLMSG_ALIGNTO - 1) & ~(NLMSG_ALIGNTO - 1)) |
| #define NLMSG_HDRLEN ((int)NLMSG_ALIGN(sizeof(struct nlmsghdr))) |
| #define NLMSG_LENGTH | ( | len | ) | ((len) + NLMSG_HDRLEN) |
| #define NLMSG_SPACE | ( | len | ) | NLMSG_ALIGN(NLMSG_LENGTH(len)) |
| #define NLMSG_DATA | ( | nlh | ) | ((void*)(((char*)nlh) + NLMSG_LENGTH(0))) |
| #define NLMSG_NEXT | ( | nlh, | |
| len | |||
| ) |
| #define NLMSG_OK | ( | nlh, | |
| len | |||
| ) |
| #define NLMSG_PAYLOAD | ( | nlh, | |
| len | |||
| ) | ((nlh)->nlmsg_len - NLMSG_SPACE((len))) |