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/types.h> 22 #include <linux/netfilter.h> 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 #include <linux/netfilter/nf_conntrack_tuple_common.h> 25 #define XT_CONNTRACK_STATE_BIT(ctinfo) (1 << ((ctinfo) % IP_CT_IS_REPLY + 1)) 26 #define XT_CONNTRACK_STATE_INVALID (1 << 0) 27 #define XT_CONNTRACK_STATE_SNAT (1 << (IP_CT_NUMBER + 1)) 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 #define XT_CONNTRACK_STATE_DNAT (1 << (IP_CT_NUMBER + 2)) 30 #define XT_CONNTRACK_STATE_UNTRACKED (1 << (IP_CT_NUMBER + 3)) 31 enum { 32 XT_CONNTRACK_STATE = 1 << 0, 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 XT_CONNTRACK_PROTO = 1 << 1, 35 XT_CONNTRACK_ORIGSRC = 1 << 2, 36 XT_CONNTRACK_ORIGDST = 1 << 3, 37 XT_CONNTRACK_REPLSRC = 1 << 4, 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 XT_CONNTRACK_REPLDST = 1 << 5, 40 XT_CONNTRACK_STATUS = 1 << 6, 41 XT_CONNTRACK_EXPIRES = 1 << 7, 42 XT_CONNTRACK_ORIGSRC_PORT = 1 << 8, 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 XT_CONNTRACK_ORIGDST_PORT = 1 << 9, 45 XT_CONNTRACK_REPLSRC_PORT = 1 << 10, 46 XT_CONNTRACK_REPLDST_PORT = 1 << 11, 47 XT_CONNTRACK_DIRECTION = 1 << 12, 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 XT_CONNTRACK_STATE_ALIAS = 1 << 13, 50 }; 51 struct xt_conntrack_mtinfo1 { 52 union nf_inet_addr origsrc_addr, origsrc_mask; 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 union nf_inet_addr origdst_addr, origdst_mask; 55 union nf_inet_addr replsrc_addr, replsrc_mask; 56 union nf_inet_addr repldst_addr, repldst_mask; 57 __u32 expires_min, expires_max; 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 __u16 l4proto; 60 __be16 origsrc_port, origdst_port; 61 __be16 replsrc_port, repldst_port; 62 __u16 match_flags, invert_flags; 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 __u8 state_mask, status_mask; 65 }; 66 struct xt_conntrack_mtinfo2 { 67 union nf_inet_addr origsrc_addr, origsrc_mask; 68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 union nf_inet_addr origdst_addr, origdst_mask; 70 union nf_inet_addr replsrc_addr, replsrc_mask; 71 union nf_inet_addr repldst_addr, repldst_mask; 72 __u32 expires_min, expires_max; 73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 __u16 l4proto; 75 __be16 origsrc_port, origdst_port; 76 __be16 replsrc_port, repldst_port; 77 __u16 match_flags, invert_flags; 78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79 __u16 state_mask, status_mask; 80 }; 81 struct xt_conntrack_mtinfo3 { 82 union nf_inet_addr origsrc_addr, origsrc_mask; 83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84 union nf_inet_addr origdst_addr, origdst_mask; 85 union nf_inet_addr replsrc_addr, replsrc_mask; 86 union nf_inet_addr repldst_addr, repldst_mask; 87 __u32 expires_min, expires_max; 88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89 __u16 l4proto; 90 __u16 origsrc_port, origdst_port; 91 __u16 replsrc_port, repldst_port; 92 __u16 match_flags, invert_flags; 93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94 __u16 state_mask, status_mask; 95 __u16 origsrc_port_high, origdst_port_high; 96 __u16 replsrc_port_high, repldst_port_high; 97 }; 98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99 #endif 100