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 _UAPI__LINUX_GENERIC_NETLINK_H
20#define _UAPI__LINUX_GENERIC_NETLINK_H
21#include <linux/types.h>
22#include <linux/netlink.h>
23#define GENL_NAMSIZ 16
24#define GENL_MIN_ID NLMSG_MIN_TYPE
25#define GENL_MAX_ID 1023
26struct genlmsghdr {
27  __u8 cmd;
28  __u8 version;
29  __u16 reserved;
30};
31#define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
32#define GENL_ADMIN_PERM 0x01
33#define GENL_CMD_CAP_DO 0x02
34#define GENL_CMD_CAP_DUMP 0x04
35#define GENL_CMD_CAP_HASPOL 0x08
36#define GENL_UNS_ADMIN_PERM 0x10
37#define GENL_ID_CTRL NLMSG_MIN_TYPE
38#define GENL_ID_VFS_DQUOT (NLMSG_MIN_TYPE + 1)
39#define GENL_ID_PMCRAID (NLMSG_MIN_TYPE + 2)
40#define GENL_START_ALLOC (NLMSG_MIN_TYPE + 3)
41enum {
42  CTRL_CMD_UNSPEC,
43  CTRL_CMD_NEWFAMILY,
44  CTRL_CMD_DELFAMILY,
45  CTRL_CMD_GETFAMILY,
46  CTRL_CMD_NEWOPS,
47  CTRL_CMD_DELOPS,
48  CTRL_CMD_GETOPS,
49  CTRL_CMD_NEWMCAST_GRP,
50  CTRL_CMD_DELMCAST_GRP,
51  CTRL_CMD_GETMCAST_GRP,
52  __CTRL_CMD_MAX,
53};
54#define CTRL_CMD_MAX (__CTRL_CMD_MAX - 1)
55enum {
56  CTRL_ATTR_UNSPEC,
57  CTRL_ATTR_FAMILY_ID,
58  CTRL_ATTR_FAMILY_NAME,
59  CTRL_ATTR_VERSION,
60  CTRL_ATTR_HDRSIZE,
61  CTRL_ATTR_MAXATTR,
62  CTRL_ATTR_OPS,
63  CTRL_ATTR_MCAST_GROUPS,
64  __CTRL_ATTR_MAX,
65};
66#define CTRL_ATTR_MAX (__CTRL_ATTR_MAX - 1)
67enum {
68  CTRL_ATTR_OP_UNSPEC,
69  CTRL_ATTR_OP_ID,
70  CTRL_ATTR_OP_FLAGS,
71  __CTRL_ATTR_OP_MAX,
72};
73#define CTRL_ATTR_OP_MAX (__CTRL_ATTR_OP_MAX - 1)
74enum {
75  CTRL_ATTR_MCAST_GRP_UNSPEC,
76  CTRL_ATTR_MCAST_GRP_NAME,
77  CTRL_ATTR_MCAST_GRP_ID,
78  __CTRL_ATTR_MCAST_GRP_MAX,
79};
80#define CTRL_ATTR_MCAST_GRP_MAX (__CTRL_ATTR_MCAST_GRP_MAX - 1)
81#endif
82