3 #include <linux/netfilter_ipv4.h>
4 #include <linux/netfilter/nf_conntrack_tuple.h>
6 #define NF_NAT_MAPPING_TYPE_MAX_NAMELEN 16
14 /* SRC manip occurs POST_ROUTING or LOCAL_IN */
15 #define HOOK2MANIP(hooknum) ((hooknum) != NF_IP_POST_ROUTING && (hooknum) != NF_IP_LOCAL_IN)
17 #define IP_NAT_RANGE_MAP_IPS 1
18 #define IP_NAT_RANGE_PROTO_SPECIFIED 2
19 #define IP_NAT_RANGE_PROTO_RANDOM 4
21 /* Single range specification. */
24 /* Set to OR of flags above. */
27 /* Inclusive: network order. */
28 __be32 min_ip, max_ip;
30 /* Inclusive: network order */
31 union nf_conntrack_man_proto min, max;
34 /* For backwards compat: don't use in modern code. */
35 struct nf_nat_multi_range_compat
37 unsigned int rangesize; /* Must be 1. */
40 struct nf_nat_range range[1];
43 #define ip_nat_range nf_nat_range
44 #define ip_nat_multi_range nf_nat_multi_range_compat