Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
genetlink.h
Go to the documentation of this file.
1 #ifndef _UAPI__LINUX_GENERIC_NETLINK_H
2 #define _UAPI__LINUX_GENERIC_NETLINK_H
3 
4 #include <linux/types.h>
5 #include <linux/netlink.h>
6 
7 #define GENL_NAMSIZ 16 /* length of family name */
8 
9 #define GENL_MIN_ID NLMSG_MIN_TYPE
10 #define GENL_MAX_ID 1023
11 
12 struct genlmsghdr {
16 };
17 
18 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
19 
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
24 
25 /*
26  * List of reserved static generic netlink identifiers:
27  */
28 #define GENL_ID_GENERATE 0
29 #define GENL_ID_CTRL NLMSG_MIN_TYPE
30 
31 /**************************************************************************
32  * Controller
33  **************************************************************************/
34 
35 enum {
45  CTRL_CMD_GETMCAST_GRP, /* unused */
47 };
48 
49 #define CTRL_CMD_MAX (__CTRL_CMD_MAX - 1)
50 
51 enum {
61 };
62 
63 #define CTRL_ATTR_MAX (__CTRL_ATTR_MAX - 1)
64 
65 enum {
70 };
71 
72 #define CTRL_ATTR_OP_MAX (__CTRL_ATTR_OP_MAX - 1)
73 
74 enum {
79 };
80 
81 #define CTRL_ATTR_MCAST_GRP_MAX (__CTRL_ATTR_MCAST_GRP_MAX - 1)
82 
83 
84 #endif /* _UAPI__LINUX_GENERIC_NETLINK_H */