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_NETFILTER_H
20#define _UAPI__LINUX_NETFILTER_H
21#include <linux/types.h>
22#include <linux/compiler.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#include <linux/sysctl.h>
25#include <linux/in.h>
26#include <linux/in6.h>
27#define NF_DROP 0
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define NF_ACCEPT 1
30#define NF_STOLEN 2
31#define NF_QUEUE 3
32#define NF_REPEAT 4
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define NF_STOP 5
35#define NF_MAX_VERDICT NF_STOP
36#define NF_VERDICT_MASK 0x000000ff
37#define NF_VERDICT_FLAG_QUEUE_BYPASS 0x00008000
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define NF_VERDICT_QMASK 0xffff0000
40#define NF_VERDICT_QBITS 16
41#define NF_QUEUE_NR(x) ((((x) << 16) & NF_VERDICT_QMASK) | NF_QUEUE)
42#define NF_DROP_ERR(x) (((- x) << 16) | NF_DROP)
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define NFC_UNKNOWN 0x4000
45#define NFC_ALTERED 0x8000
46#define NF_VERDICT_BITS 16
47enum nf_inet_hooks {
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49  NF_INET_PRE_ROUTING,
50  NF_INET_LOCAL_IN,
51  NF_INET_FORWARD,
52  NF_INET_LOCAL_OUT,
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54  NF_INET_POST_ROUTING,
55  NF_INET_NUMHOOKS
56};
57enum nf_dev_hooks {
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59  NF_NETDEV_INGRESS,
60  NF_NETDEV_NUMHOOKS
61};
62enum {
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64  NFPROTO_UNSPEC = 0,
65  NFPROTO_INET = 1,
66  NFPROTO_IPV4 = 2,
67  NFPROTO_ARP = 3,
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69  NFPROTO_NETDEV = 5,
70  NFPROTO_BRIDGE = 7,
71  NFPROTO_IPV6 = 10,
72  NFPROTO_DECNET = 12,
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74  NFPROTO_NUMPROTO,
75};
76union nf_inet_addr {
77  __u32 all[4];
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79  __be32 ip;
80  __be32 ip6[4];
81  struct in_addr in;
82  struct in6_addr in6;
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84};
85#endif
86