diff options
Diffstat (limited to 'src/network/network.cc')
-rw-r--r-- | src/network/network.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/network.cc b/src/network/network.cc index dd1bce7..da1d2c7 100644 --- a/src/network/network.cc +++ b/src/network/network.cc @@ -106,11 +106,13 @@ void Connection::setup( void ) } /* Disable path MTU discovery */ +#ifdef HAVE_IP_MTU_DISCOVER char flag = IP_PMTUDISC_DONT; socklen_t optlen = sizeof( flag ); if ( setsockopt( sock, IPPROTO_IP, IP_MTU_DISCOVER, &flag, optlen ) < 0 ) { throw NetworkException( "setsockopt", errno ); } +#endif } Connection::Connection( const char *desired_ip ) /* server */ |