• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef __LINUX_GENERIC_NETLINK_H
20 #define __LINUX_GENERIC_NETLINK_H
21 #include <linux/types.h>
22 #include <linux/netlink.h>
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #define GENL_NAMSIZ 16
25 #define GENL_MIN_ID NLMSG_MIN_TYPE
26 #define GENL_MAX_ID 1023
27 struct genlmsghdr {
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29  __u8 cmd;
30  __u8 version;
31  __u16 reserved;
32 };
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
35 #define GENL_ADMIN_PERM 0x01
36 #define GENL_CMD_CAP_DO 0x02
37 #define GENL_CMD_CAP_DUMP 0x04
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 #define GENL_CMD_CAP_HASPOL 0x08
40 #define GENL_ID_GENERATE 0
41 #define GENL_ID_CTRL NLMSG_MIN_TYPE
42 enum {
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44  CTRL_CMD_UNSPEC,
45  CTRL_CMD_NEWFAMILY,
46  CTRL_CMD_DELFAMILY,
47  CTRL_CMD_GETFAMILY,
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49  CTRL_CMD_NEWOPS,
50  CTRL_CMD_DELOPS,
51  CTRL_CMD_GETOPS,
52  CTRL_CMD_NEWMCAST_GRP,
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54  CTRL_CMD_DELMCAST_GRP,
55  CTRL_CMD_GETMCAST_GRP,
56  __CTRL_CMD_MAX,
57 };
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 #define CTRL_CMD_MAX (__CTRL_CMD_MAX - 1)
60 enum {
61  CTRL_ATTR_UNSPEC,
62  CTRL_ATTR_FAMILY_ID,
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64  CTRL_ATTR_FAMILY_NAME,
65  CTRL_ATTR_VERSION,
66  CTRL_ATTR_HDRSIZE,
67  CTRL_ATTR_MAXATTR,
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69  CTRL_ATTR_OPS,
70  CTRL_ATTR_MCAST_GROUPS,
71  __CTRL_ATTR_MAX,
72 };
73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 #define CTRL_ATTR_MAX (__CTRL_ATTR_MAX - 1)
75 enum {
76  CTRL_ATTR_OP_UNSPEC,
77  CTRL_ATTR_OP_ID,
78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79  CTRL_ATTR_OP_FLAGS,
80  __CTRL_ATTR_OP_MAX,
81 };
82 #define CTRL_ATTR_OP_MAX (__CTRL_ATTR_OP_MAX - 1)
83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84 enum {
85  CTRL_ATTR_MCAST_GRP_UNSPEC,
86  CTRL_ATTR_MCAST_GRP_NAME,
87  CTRL_ATTR_MCAST_GRP_ID,
88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89  __CTRL_ATTR_MCAST_GRP_MAX,
90 };
91 #define CTRL_ATTR_MCAST_GRP_MAX (__CTRL_ATTR_MCAST_GRP_MAX - 1)
92 #endif
93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94