aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netfilter/nf_nat.h
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2017-03-24 06:32:41 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-03-24 06:32:41 +0000
commite20d6bf62b07e455e15b3d8982fb83dc99b9e564 (patch)
tree4400fe0ba9baae676633293796954b4061726d5d /include/linux/netfilter/nf_nat.h
parenta1ffd5ecfa5d72c6dc4cfaf11653d61e3e9083bc (diff)
parentff45753ae3c3108c6c93ec132f7cf62190f9c628 (diff)
downloadplatform_external_iptables-e20d6bf62b07e455e15b3d8982fb83dc99b9e564.tar.gz
platform_external_iptables-e20d6bf62b07e455e15b3d8982fb83dc99b9e564.tar.bz2
platform_external_iptables-e20d6bf62b07e455e15b3d8982fb83dc99b9e564.zip
Merge changes from topic 'iptables-1.6.1' am: c784fc47e6
am: ff45753ae3 Change-Id: Ic463667ae6ac346f8eae4b6ca18888dcd24b9d6d
Diffstat (limited to 'include/linux/netfilter/nf_nat.h')
-rw-r--r--include/linux/netfilter/nf_nat.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/linux/netfilter/nf_nat.h b/include/linux/netfilter/nf_nat.h
index bf0cc373..1ad36591 100644
--- a/include/linux/netfilter/nf_nat.h
+++ b/include/linux/netfilter/nf_nat.h
@@ -4,10 +4,14 @@
#include <linux/netfilter.h>
#include <linux/netfilter/nf_conntrack_tuple_common.h>
-#define NF_NAT_RANGE_MAP_IPS 1
-#define NF_NAT_RANGE_PROTO_SPECIFIED 2
-#define NF_NAT_RANGE_PROTO_RANDOM 4
-#define NF_NAT_RANGE_PERSISTENT 8
+#define NF_NAT_RANGE_MAP_IPS (1 << 0)
+#define NF_NAT_RANGE_PROTO_SPECIFIED (1 << 1)
+#define NF_NAT_RANGE_PROTO_RANDOM (1 << 2)
+#define NF_NAT_RANGE_PERSISTENT (1 << 3)
+#define NF_NAT_RANGE_PROTO_RANDOM_FULLY (1 << 4)
+
+#define NF_NAT_RANGE_PROTO_RANDOM_ALL \
+ (NF_NAT_RANGE_PROTO_RANDOM | NF_NAT_RANGE_PROTO_RANDOM_FULLY)
struct nf_nat_ipv4_range {
unsigned int flags;