1 /****************************************************************************
2 ****************************************************************************
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.
10 ****************************************************************************
11 ****************************************************************************/
14 #include <linux/netfilter_ipv4.h>
15 #include <linux/netfilter_ipv4/ip_conntrack_tuple.h>
17 #define IP_NAT_MAPPING_TYPE_MAX_NAMELEN 16
19 enum ip_nat_manip_type
25 #define HOOK2MANIP(hooknum) ((hooknum) != NF_IP_POST_ROUTING && (hooknum) != NF_IP_LOCAL_IN)
27 #define IP_NAT_RANGE_MAP_IPS 1
28 #define IP_NAT_RANGE_PROTO_SPECIFIED 2
32 u_int32_t correction_pos;
34 int16_t offset_before, offset_after;
42 u_int32_t min_ip, max_ip;
44 union ip_conntrack_manip_proto min, max;
47 struct ip_nat_multi_range_compat
49 unsigned int rangesize;
51 struct ip_nat_range range[1];
54 #define ip_nat_multi_range ip_nat_multi_range_compat