nfnetlink_queue.h revision 05d08e9716b5974d6ed08973f44930804890b902
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_QUEUE_H 20#define _NFNETLINK_QUEUE_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 nfqnl_msg_types { 25 NFQNL_MSG_PACKET, 26 NFQNL_MSG_VERDICT, 27 NFQNL_MSG_CONFIG, 28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 NFQNL_MSG_VERDICT_BATCH, 30 NFQNL_MSG_MAX 31}; 32struct nfqnl_msg_packet_hdr { 33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 __be32 packet_id; 35 __be16 hw_protocol; 36 __u8 hook; 37} __attribute__((packed)); 38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39struct nfqnl_msg_packet_hw { 40 __be16 hw_addrlen; 41 __u16 _pad; 42 __u8 hw_addr[8]; 43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44}; 45struct nfqnl_msg_packet_timestamp { 46 __aligned_be64 sec; 47 __aligned_be64 usec; 48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49}; 50enum nfqnl_attr_type { 51 NFQA_UNSPEC, 52 NFQA_PACKET_HDR, 53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 NFQA_VERDICT_HDR, 55 NFQA_MARK, 56 NFQA_TIMESTAMP, 57 NFQA_IFINDEX_INDEV, 58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 NFQA_IFINDEX_OUTDEV, 60 NFQA_IFINDEX_PHYSINDEV, 61 NFQA_IFINDEX_PHYSOUTDEV, 62 NFQA_HWADDR, 63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 NFQA_PAYLOAD, 65 NFQA_CT, 66 NFQA_CT_INFO, 67 NFQA_CAP_LEN, 68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 NFQA_SKB_INFO, 70 NFQA_EXP, 71 NFQA_UID, 72 NFQA_GID, 73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 NFQA_SECCTX, 75 __NFQA_MAX 76}; 77#define NFQA_MAX (__NFQA_MAX - 1) 78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79struct nfqnl_msg_verdict_hdr { 80 __be32 verdict; 81 __be32 id; 82}; 83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84enum nfqnl_msg_config_cmds { 85 NFQNL_CFG_CMD_NONE, 86 NFQNL_CFG_CMD_BIND, 87 NFQNL_CFG_CMD_UNBIND, 88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89 NFQNL_CFG_CMD_PF_BIND, 90 NFQNL_CFG_CMD_PF_UNBIND, 91}; 92struct nfqnl_msg_config_cmd { 93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94 __u8 command; 95 __u8 _pad; 96 __be16 pf; 97}; 98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99enum nfqnl_config_mode { 100 NFQNL_COPY_NONE, 101 NFQNL_COPY_META, 102 NFQNL_COPY_PACKET, 103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 104}; 105struct nfqnl_msg_config_params { 106 __be32 copy_range; 107 __u8 copy_mode; 108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 109} __attribute__((packed)); 110enum nfqnl_attr_config { 111 NFQA_CFG_UNSPEC, 112 NFQA_CFG_CMD, 113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 114 NFQA_CFG_PARAMS, 115 NFQA_CFG_QUEUE_MAXLEN, 116 NFQA_CFG_MASK, 117 NFQA_CFG_FLAGS, 118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 119 __NFQA_CFG_MAX 120}; 121#define NFQA_CFG_MAX (__NFQA_CFG_MAX - 1) 122#define NFQA_CFG_F_FAIL_OPEN (1 << 0) 123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 124#define NFQA_CFG_F_CONNTRACK (1 << 1) 125#define NFQA_CFG_F_GSO (1 << 2) 126#define NFQA_CFG_F_UID_GID (1 << 3) 127#define NFQA_CFG_F_SECCTX (1 << 4) 128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 129#define NFQA_CFG_F_MAX (1 << 5) 130#define NFQA_SKB_CSUMNOTREADY (1 << 0) 131#define NFQA_SKB_GSO (1 << 1) 132#define NFQA_SKB_CSUM_NOTVERIFIED (1 << 2) 133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 134#endif 135