diff options
author | Quentin Smith <quentin@mit.edu> | 2012-02-26 01:28:06 -0500 |
---|---|---|
committer | Keith Winstein <keithw@mit.edu> | 2012-03-07 03:05:36 -0500 |
commit | a1671bcf3b7c9da72ff4cb098998e599c6a17343 (patch) | |
tree | 20c8f7520ad429b28b13eb4fc53427004c660619 /src | |
parent | e8d14d35a64edc32b1ebbb6aae8e4b998ea93cfd (diff) |
Handle the absence of IP_MTU_DISCOVER
Diffstat (limited to 'src')
-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 */ |