From 9fb040fc5fc1952e046f2e50f365645c8100c227 Mon Sep 17 00:00:00 2001 From: LGA1150 Date: Sun, 20 May 2018 22:55:23 +0800 Subject: Check macro NF_NAT_RANGE_PROTO_RANDOM_FULLY Fix https://github.com/Chion82/netfilter-full-cone-nat/issues/2#issuecomment-374158956 --- libipt_FULLCONENAT.c | 4 ++++ 1 file changed, 4 insertions(+) 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 #include +#ifndef NF_NAT_RANGE_PROTO_RANDOM_FULLY +#define NF_NAT_RANGE_PROTO_RANDOM_FULLY (1 << 4) +#endif + enum { O_TO_PORTS = 0, O_RANDOM, -- cgit v1.2.3