Go to the documentation of this file. 1 #ifndef _UAPI__LINUX_GENERIC_NETLINK_H
2 #define _UAPI__LINUX_GENERIC_NETLINK_H
4 #include <linux/types.h>
5 #include <linux/netlink.h>
9 #define GENL_MIN_ID NLMSG_MIN_TYPE
10 #define GENL_MAX_ID 1023
18 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
20 #define GENL_ADMIN_PERM 0x01
21 #define GENL_CMD_CAP_DO 0x02
22 #define GENL_CMD_CAP_DUMP 0x04
23 #define GENL_CMD_CAP_HASPOL 0x08
28 #define GENL_ID_GENERATE 0
29 #define GENL_ID_CTRL NLMSG_MIN_TYPE
49 #define CTRL_CMD_MAX (__CTRL_CMD_MAX - 1)
63 #define CTRL_ATTR_MAX (__CTRL_ATTR_MAX - 1)
72 #define CTRL_ATTR_OP_MAX (__CTRL_ATTR_OP_MAX - 1)
81 #define CTRL_ATTR_MCAST_GRP_MAX (__CTRL_ATTR_MCAST_GRP_MAX - 1)