nfnetlink.h revision 655a7c081f83b8351ed5f11a6c6accd9458293a8
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_MAX,
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44};
45#define NFNLGRP_MAX (__NFNLGRP_MAX - 1)
46struct nfgenmsg {
47 __u8 nfgen_family;
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 __u8 version;
50 __be16 res_id;
51};
52#define NFNETLINK_V0 0
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#define NFNL_SUBSYS_ID(x) ((x & 0xff00) >> 8)
55#define NFNL_MSG_TYPE(x) (x & 0x00ff)
56#define NFNL_SUBSYS_NONE 0
57#define NFNL_SUBSYS_CTNETLINK 1
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#define NFNL_SUBSYS_CTNETLINK_EXP 2
60#define NFNL_SUBSYS_QUEUE 3
61#define NFNL_SUBSYS_ULOG 4
62#define NFNL_SUBSYS_OSF 5
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64#define NFNL_SUBSYS_IPSET 6
65#define NFNL_SUBSYS_ACCT 7
66#define NFNL_SUBSYS_CTNETLINK_TIMEOUT 8
67#define NFNL_SUBSYS_CTHELPER 9
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69#define NFNL_SUBSYS_COUNT 10
70#endif
71