From 2c7c3b62df2661b3276253fb3d8d624d81c398a2 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Mon, 24 Dec 2018 12:25:15 +0100 Subject: added additional autoconf ICMP_FILTER compile check Signed-off-by: Toni Uhlig --- src/ptunnel.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ptunnel.c') diff --git a/src/ptunnel.c b/src/ptunnel.c index f640d1b..9f435f9 100644 --- a/src/ptunnel.c +++ b/src/ptunnel.c @@ -388,7 +388,9 @@ void* pt_proxy(void *args) { in_addr_t *adr; #endif struct in_addr in_addr; +#ifdef HAVE_ICMPFILTER struct icmp_filter filt; +#endif /* Start the thread, initialize protocol and ring states. */ pt_log(kLog_debug, "Starting ping proxy..\n"); @@ -411,9 +413,11 @@ void* pt_proxy(void *args) { else { pt_log(kLog_debug, "Attempting to create privileged ICMP raw socket..\n"); fwd_sock = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP); +#ifdef HAVE_ICMPFILTER filt.data = ~((1<