aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libipt_FULLCONENAT.c4
-rw-r--r--xt_FULLCONENAT.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/libipt_FULLCONENAT.c b/libipt_FULLCONENAT.c
index 1930895..9965cd7 100644
--- a/libipt_FULLCONENAT.c
+++ b/libipt_FULLCONENAT.c
@@ -8,6 +8,10 @@
#include <linux/netfilter_ipv4/ip_tables.h>
#include <linux/netfilter/nf_nat.h>
+#ifndef NF_NAT_RANGE_PROTO_RANDOM_FULLY
+#define NF_NAT_RANGE_PROTO_RANDOM_FULLY (1 << 4)
+#endif
+
enum {
O_TO_PORTS = 0,
O_RANDOM,
diff --git a/xt_FULLCONENAT.c b/xt_FULLCONENAT.c
index 4595aa3..3d0f046 100644
--- a/xt_FULLCONENAT.c
+++ b/xt_FULLCONENAT.c
@@ -32,6 +32,10 @@
#define HASHTABLE_BUCKET_BITS 10
+#ifndef NF_NAT_RANGE_PROTO_RANDOM_FULLY
+#define NF_NAT_RANGE_PROTO_RANDOM_FULLY (1 << 4)
+#endif
+
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0)
static inline int nf_ct_netns_get(struct net *net, u8 nfproto) { return 0; }