nfnetlink_queue.h revision 8cb52b056cfc302e05304d847c4228dff15715cf
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_MAX 71}; 72#define NFQA_MAX (__NFQA_MAX - 1) 73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74struct nfqnl_msg_verdict_hdr { 75 __be32 verdict; 76 __be32 id; 77}; 78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79enum nfqnl_msg_config_cmds { 80 NFQNL_CFG_CMD_NONE, 81 NFQNL_CFG_CMD_BIND, 82 NFQNL_CFG_CMD_UNBIND, 83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84 NFQNL_CFG_CMD_PF_BIND, 85 NFQNL_CFG_CMD_PF_UNBIND, 86}; 87struct nfqnl_msg_config_cmd { 88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89 __u8 command; 90 __u8 _pad; 91 __be16 pf; 92}; 93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94enum nfqnl_config_mode { 95 NFQNL_COPY_NONE, 96 NFQNL_COPY_META, 97 NFQNL_COPY_PACKET, 98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99}; 100struct nfqnl_msg_config_params { 101 __be32 copy_range; 102 __u8 copy_mode; 103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 104} __attribute__ ((packed)); 105enum nfqnl_attr_config { 106 NFQA_CFG_UNSPEC, 107 NFQA_CFG_CMD, 108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 109 NFQA_CFG_PARAMS, 110 NFQA_CFG_QUEUE_MAXLEN, 111 NFQA_CFG_MASK, 112 NFQA_CFG_FLAGS, 113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 114 __NFQA_CFG_MAX 115}; 116#define NFQA_CFG_MAX (__NFQA_CFG_MAX-1) 117#define NFQA_CFG_F_FAIL_OPEN (1 << 0) 118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 119#define NFQA_CFG_F_CONNTRACK (1 << 1) 120#define NFQA_CFG_F_GSO (1 << 2) 121#define NFQA_CFG_F_MAX (1 << 3) 122#define NFQA_SKB_CSUMNOTREADY (1 << 0) 123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 124#define NFQA_SKB_GSO (1 << 1) 125#endif 126