nfnetlink.h revision d7db594b8d1dab36b711bd887a9dd21675c87243
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_NFNETLINK_H
20#define _UAPI_NFNETLINK_H
21#include <linux/types.h>
22#include <linux/netfilter/nfnetlink_compat.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24enum nfnetlink_groups {
25  NFNLGRP_NONE,
26#define NFNLGRP_NONE NFNLGRP_NONE
27  NFNLGRP_CONNTRACK_NEW,
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define NFNLGRP_CONNTRACK_NEW NFNLGRP_CONNTRACK_NEW
30  NFNLGRP_CONNTRACK_UPDATE,
31#define NFNLGRP_CONNTRACK_UPDATE NFNLGRP_CONNTRACK_UPDATE
32  NFNLGRP_CONNTRACK_DESTROY,
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define NFNLGRP_CONNTRACK_DESTROY NFNLGRP_CONNTRACK_DESTROY
35  NFNLGRP_CONNTRACK_EXP_NEW,
36#define NFNLGRP_CONNTRACK_EXP_NEW NFNLGRP_CONNTRACK_EXP_NEW
37  NFNLGRP_CONNTRACK_EXP_UPDATE,
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define NFNLGRP_CONNTRACK_EXP_UPDATE NFNLGRP_CONNTRACK_EXP_UPDATE
40  NFNLGRP_CONNTRACK_EXP_DESTROY,
41#define NFNLGRP_CONNTRACK_EXP_DESTROY NFNLGRP_CONNTRACK_EXP_DESTROY
42  NFNLGRP_NFTABLES,
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define NFNLGRP_NFTABLES NFNLGRP_NFTABLES
45  NFNLGRP_ACCT_QUOTA,
46#define NFNLGRP_ACCT_QUOTA NFNLGRP_ACCT_QUOTA
47  __NFNLGRP_MAX,
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49};
50#define NFNLGRP_MAX (__NFNLGRP_MAX - 1)
51struct nfgenmsg {
52  __u8 nfgen_family;
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54  __u8 version;
55  __be16 res_id;
56};
57#define NFNETLINK_V0 0
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#define NFNL_SUBSYS_ID(x) ((x & 0xff00) >> 8)
60#define NFNL_MSG_TYPE(x) (x & 0x00ff)
61#define NFNL_SUBSYS_NONE 0
62#define NFNL_SUBSYS_CTNETLINK 1
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64#define NFNL_SUBSYS_CTNETLINK_EXP 2
65#define NFNL_SUBSYS_QUEUE 3
66#define NFNL_SUBSYS_ULOG 4
67#define NFNL_SUBSYS_OSF 5
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69#define NFNL_SUBSYS_IPSET 6
70#define NFNL_SUBSYS_ACCT 7
71#define NFNL_SUBSYS_CTNETLINK_TIMEOUT 8
72#define NFNL_SUBSYS_CTHELPER 9
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74#define NFNL_SUBSYS_NFTABLES 10
75#define NFNL_SUBSYS_NFT_COMPAT 11
76#define NFNL_SUBSYS_COUNT 12
77#define NFNL_MSG_BATCH_BEGIN NLMSG_MIN_TYPE
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79#define NFNL_MSG_BATCH_END NLMSG_MIN_TYPE + 1
80#endif
81