packaging: release out (3.8.3)
[profile/ivi/kernel-adaptation-intel-automotive.git] / include / uapi / linux / netfilter / nf_nat.h
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 struct nf_nat_range {
26         unsigned int                    flags;
27         union nf_inet_addr              min_addr;
28         union nf_inet_addr              max_addr;
29         union nf_conntrack_man_proto    min_proto;
30         union nf_conntrack_man_proto    max_proto;
31 };
32
33 #endif /* _NETFILTER_NF_NAT_H */