diff options
Diffstat (limited to '9/platforms/android-12/arch-mips/usr/include/linux/netfilter_ipv4/ip_conntrack_tuple.h')
-rw-r--r-- | 9/platforms/android-12/arch-mips/usr/include/linux/netfilter_ipv4/ip_conntrack_tuple.h | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/9/platforms/android-12/arch-mips/usr/include/linux/netfilter_ipv4/ip_conntrack_tuple.h b/9/platforms/android-12/arch-mips/usr/include/linux/netfilter_ipv4/ip_conntrack_tuple.h new file mode 100644 index 0000000..0c96baf --- /dev/null +++ b/9/platforms/android-12/arch-mips/usr/include/linux/netfilter_ipv4/ip_conntrack_tuple.h @@ -0,0 +1,81 @@ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _IP_CONNTRACK_TUPLE_H +#define _IP_CONNTRACK_TUPLE_H + +#include <linux/types.h> +#include <linux/netfilter/nf_conntrack_tuple_common.h> + +union ip_conntrack_manip_proto +{ + + u_int16_t all; + + struct { + __be16 port; + } tcp; + struct { + u_int16_t port; + } udp; + struct { + u_int16_t id; + } icmp; + struct { + u_int16_t port; + } sctp; + struct { + __be16 key; + } gre; +}; + +struct ip_conntrack_manip +{ + u_int32_t ip; + union ip_conntrack_manip_proto u; +}; + +struct ip_conntrack_tuple +{ + struct ip_conntrack_manip src; + + struct { + u_int32_t ip; + union { + + u_int16_t all; + + struct { + u_int16_t port; + } tcp; + struct { + u_int16_t port; + } udp; + struct { + u_int8_t type, code; + } icmp; + struct { + u_int16_t port; + } sctp; + struct { + __be16 key; + } gre; + } u; + + u_int8_t protonum; + + u_int8_t dir; + } dst; +}; + +#define IP_CT_TUPLE_U_BLANK(tuple) do { (tuple)->src.u.all = 0; (tuple)->dst.u.all = 0; } while (0) + +#endif |