From: Guus Sliepen Date: Sun, 11 May 2014 15:11:02 +0000 (+0200) Subject: Remove the warnings when IP_DONTFRAGMENT/IPV6-DONTFRAG is not supported. X-Git-Tag: release-1.0.24~1 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=d7be59a9dc6540f7ae6b7d5d6e595265f5f8b3cc;p=tinc Remove the warnings when IP_DONTFRAGMENT/IPV6-DONTFRAG is not supported. There is nothing we can do about it, and tinc will run fine anyway. --- diff --git a/src/net_socket.c b/src/net_socket.c index 4beb665a..9a67bb3c 100644 --- a/src/net_socket.c +++ b/src/net_socket.c @@ -1,7 +1,7 @@ /* net_socket.c -- Handle various kinds of sockets. Copyright (C) 1998-2005 Ivo Timmermans, - 2000-2013 Guus Sliepen + 2000-2014 Guus Sliepen 2006 Scott Lamb 2009 Florian Forster @@ -240,8 +240,6 @@ int setup_vpn_in_socket(const sockaddr_t *sa) { option = 1; setsockopt(nfd, IPPROTO_IP, IP_DONTFRAGMENT, (void *)&option, sizeof(option)); } -#else -#warning No way to disable IPv4 fragmentation #endif #if defined(SOL_IPV6) && defined(IPV6_MTU_DISCOVER) && defined(IPV6_PMTUDISC_DO) @@ -254,8 +252,6 @@ int setup_vpn_in_socket(const sockaddr_t *sa) { option = 1; setsockopt(nfd, IPPROTO_IPV6, IPV6_DONTFRAG, (void *)&option, sizeof(option)); } -#else -#warning No way to disable IPv6 fragmentation #endif if (!bind_to_interface(nfd)) {