1 #ifndef _LINUX_NF_NAT_H
2 #define _LINUX_NF_NAT_H
4 #include <linux/types.h>
6 #define IP_NAT_RANGE_MAP_IPS 1
7 #define IP_NAT_RANGE_PROTO_SPECIFIED 2
8 #define IP_NAT_RANGE_PROTO_RANDOM 4
9 #define IP_NAT_RANGE_PERSISTENT 8
11 /* The protocol-specific manipulable parts of the tuple. */
12 union nf_conntrack_man_proto {
13 /* Add other protocols here. */
32 __be16 key; /* GRE key is 32bit, PPtP only uses 16bit */
36 /* Single range specification. */
38 /* Set to OR of flags above. */
41 /* Inclusive: network order. */
42 __be32 min_ip, max_ip;
44 /* Inclusive: network order */
45 union nf_conntrack_man_proto min, max;
48 /* For backwards compat: don't use in modern code. */
49 struct nf_nat_multi_range_compat {
50 unsigned int rangesize; /* Must be 1. */
53 struct nf_nat_range range[1];
56 #define nf_nat_multi_range nf_nat_multi_range_compat