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 _NFNETLINK_LOG_H
20 #define _NFNETLINK_LOG_H
21 #include <linux/types.h>
22 #include <linux/netfilter/nfnetlink.h>
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 enum nfulnl_msg_types {
25   NFULNL_MSG_PACKET,
26   NFULNL_MSG_CONFIG,
27   NFULNL_MSG_MAX
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 };
30 struct nfulnl_msg_packet_hdr {
31   __be16 hw_protocol;
32   __u8 hook;
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34   __u8 _pad;
35 };
36 struct nfulnl_msg_packet_hw {
37   __be16 hw_addrlen;
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39   __u16 _pad;
40   __u8 hw_addr[8];
41 };
42 struct nfulnl_msg_packet_timestamp {
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44   __aligned_be64 sec;
45   __aligned_be64 usec;
46 };
47 enum nfulnl_attr_type {
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49   NFULA_UNSPEC,
50   NFULA_PACKET_HDR,
51   NFULA_MARK,
52   NFULA_TIMESTAMP,
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54   NFULA_IFINDEX_INDEV,
55   NFULA_IFINDEX_OUTDEV,
56   NFULA_IFINDEX_PHYSINDEV,
57   NFULA_IFINDEX_PHYSOUTDEV,
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59   NFULA_HWADDR,
60   NFULA_PAYLOAD,
61   NFULA_PREFIX,
62   NFULA_UID,
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64   NFULA_SEQ,
65   NFULA_SEQ_GLOBAL,
66   NFULA_GID,
67   NFULA_HWTYPE,
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69   NFULA_HWHEADER,
70   NFULA_HWLEN,
71   NFULA_CT,
72   NFULA_CT_INFO,
73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74   __NFULA_MAX
75 };
76 #define NFULA_MAX (__NFULA_MAX - 1)
77 enum nfulnl_msg_config_cmds {
78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79   NFULNL_CFG_CMD_NONE,
80   NFULNL_CFG_CMD_BIND,
81   NFULNL_CFG_CMD_UNBIND,
82   NFULNL_CFG_CMD_PF_BIND,
83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84   NFULNL_CFG_CMD_PF_UNBIND,
85 };
86 struct nfulnl_msg_config_cmd {
87   __u8 command;
88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89 } __attribute__((packed));
90 struct nfulnl_msg_config_mode {
91   __be32 copy_range;
92   __u8 copy_mode;
93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94   __u8 _pad;
95 } __attribute__((packed));
96 enum nfulnl_attr_config {
97   NFULA_CFG_UNSPEC,
98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99   NFULA_CFG_CMD,
100   NFULA_CFG_MODE,
101   NFULA_CFG_NLBUFSIZ,
102   NFULA_CFG_TIMEOUT,
103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104   NFULA_CFG_QTHRESH,
105   NFULA_CFG_FLAGS,
106   __NFULA_CFG_MAX
107 };
108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109 #define NFULA_CFG_MAX (__NFULA_CFG_MAX - 1)
110 #define NFULNL_COPY_NONE 0x00
111 #define NFULNL_COPY_META 0x01
112 #define NFULNL_COPY_PACKET 0x02
113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114 #define NFULNL_CFG_F_SEQ 0x0001
115 #define NFULNL_CFG_F_SEQ_GLOBAL 0x0002
116 #define NFULNL_CFG_F_CONNTRACK 0x0004
117 #endif
118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119