• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef _NETFILTER_NF_NAT_H
2 #define _NETFILTER_NF_NAT_H
3 
4 #include <linux/netfilter.h>
5 #include <linux/netfilter/nf_conntrack_tuple_common.h>
6 
7 #define NF_NAT_RANGE_MAP_IPS		1
8 #define NF_NAT_RANGE_PROTO_SPECIFIED	2
9 #define NF_NAT_RANGE_PROTO_RANDOM	4
10 #define NF_NAT_RANGE_PERSISTENT		8
11 
12 struct nf_nat_ipv4_range {
13 	unsigned int			flags;
14 	__be32				min_ip;
15 	__be32				max_ip;
16 	union nf_conntrack_man_proto	min;
17 	union nf_conntrack_man_proto	max;
18 };
19 
20 struct nf_nat_ipv4_multi_range_compat {
21 	unsigned int			rangesize;
22 	struct nf_nat_ipv4_range	range[1];
23 };
24 
25 #endif /* _NETFILTER_NF_NAT_H */
26