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 _UAPI_NF_CONNTRACK_TCP_H 20 #define _UAPI_NF_CONNTRACK_TCP_H 21 #include <linux/types.h> 22 enum tcp_conntrack { 23 TCP_CONNTRACK_NONE, 24 TCP_CONNTRACK_SYN_SENT, 25 TCP_CONNTRACK_SYN_RECV, 26 TCP_CONNTRACK_ESTABLISHED, 27 TCP_CONNTRACK_FIN_WAIT, 28 TCP_CONNTRACK_CLOSE_WAIT, 29 TCP_CONNTRACK_LAST_ACK, 30 TCP_CONNTRACK_TIME_WAIT, 31 TCP_CONNTRACK_CLOSE, 32 TCP_CONNTRACK_LISTEN, 33 #define TCP_CONNTRACK_SYN_SENT2 TCP_CONNTRACK_LISTEN 34 TCP_CONNTRACK_MAX, 35 TCP_CONNTRACK_IGNORE, 36 TCP_CONNTRACK_RETRANS, 37 TCP_CONNTRACK_UNACK, 38 TCP_CONNTRACK_TIMEOUT_MAX 39 }; 40 #define IP_CT_TCP_FLAG_WINDOW_SCALE 0x01 41 #define IP_CT_TCP_FLAG_SACK_PERM 0x02 42 #define IP_CT_TCP_FLAG_CLOSE_INIT 0x04 43 #define IP_CT_TCP_FLAG_BE_LIBERAL 0x08 44 #define IP_CT_TCP_FLAG_DATA_UNACKNOWLEDGED 0x10 45 #define IP_CT_TCP_FLAG_MAXACK_SET 0x20 46 #define IP_CT_EXP_CHALLENGE_ACK 0x40 47 struct nf_ct_tcp_flags { 48 __u8 flags; 49 __u8 mask; 50 }; 51 #endif 52