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 _XT_CONNTRACK_H 20 #define _XT_CONNTRACK_H 21 #include <linux/netfilter/nf_conntrack_tuple_common.h> 22 #include <linux/in.h> 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 #define XT_CONNTRACK_STATE_BIT(ctinfo) (1 << ((ctinfo)%IP_CT_IS_REPLY+1)) 25 #define XT_CONNTRACK_STATE_INVALID (1 << 0) 26 #define XT_CONNTRACK_STATE_SNAT (1 << (IP_CT_NUMBER + 1)) 27 #define XT_CONNTRACK_STATE_DNAT (1 << (IP_CT_NUMBER + 2)) 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 #define XT_CONNTRACK_STATE_UNTRACKED (1 << (IP_CT_NUMBER + 3)) 30 #define XT_CONNTRACK_STATE 0x01 31 #define XT_CONNTRACK_PROTO 0x02 32 #define XT_CONNTRACK_ORIGSRC 0x04 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 #define XT_CONNTRACK_ORIGDST 0x08 35 #define XT_CONNTRACK_REPLSRC 0x10 36 #define XT_CONNTRACK_REPLDST 0x20 37 #define XT_CONNTRACK_STATUS 0x40 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 #define XT_CONNTRACK_EXPIRES 0x80 40 struct ip_conntrack_old_tuple 41 { 42 struct { 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 __u32 ip; 45 union { 46 __u16 all; 47 } u; 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 } src; 50 struct { 51 __u32 ip; 52 union { 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 __u16 all; 55 } u; 56 __u16 protonum; 57 } dst; 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 }; 60 struct xt_conntrack_info 61 { 62 unsigned int statemask, statusmask; 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 struct ip_conntrack_old_tuple tuple[IP_CT_DIR_MAX]; 65 struct in_addr sipmsk[IP_CT_DIR_MAX], dipmsk[IP_CT_DIR_MAX]; 66 unsigned long expires_min, expires_max; 67 u_int8_t flags; 68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 u_int8_t invflags; 70 }; 71 #endif 72