nfnetlink_log.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 _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 */
24enum 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};
30struct 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};
36struct 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};
42struct 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};
47enum 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_MAX
72};
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74#define NFULA_MAX (__NFULA_MAX - 1)
75enum nfulnl_msg_config_cmds {
76 NFULNL_CFG_CMD_NONE,
77 NFULNL_CFG_CMD_BIND,
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79 NFULNL_CFG_CMD_UNBIND,
80 NFULNL_CFG_CMD_PF_BIND,
81 NFULNL_CFG_CMD_PF_UNBIND,
82};
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84struct nfulnl_msg_config_cmd {
85 __u8 command;
86} __attribute__ ((packed));
87struct nfulnl_msg_config_mode {
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89 __be32 copy_range;
90 __u8 copy_mode;
91 __u8 _pad;
92} __attribute__ ((packed));
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94enum nfulnl_attr_config {
95 NFULA_CFG_UNSPEC,
96 NFULA_CFG_CMD,
97 NFULA_CFG_MODE,
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99 NFULA_CFG_NLBUFSIZ,
100 NFULA_CFG_TIMEOUT,
101 NFULA_CFG_QTHRESH,
102 NFULA_CFG_FLAGS,
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104 __NFULA_CFG_MAX
105};
106#define NFULA_CFG_MAX (__NFULA_CFG_MAX -1)
107#define NFULNL_COPY_NONE 0x00
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109#define NFULNL_COPY_META 0x01
110#define NFULNL_COPY_PACKET 0x02
111#define NFULNL_CFG_F_SEQ 0x0001
112#define NFULNL_CFG_F_SEQ_GLOBAL 0x0002
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114#endif
115