From d8533ca3a643cfe7b2491a19e27dff5b460c5da3 Mon Sep 17 00:00:00 2001 From: Keith Winstein Date: Thu, 9 Feb 2012 00:36:28 -0500 Subject: [PATCH] Get rid of PMTU discovery; Cisco VPN has MTU=1200 and breaks ICMP too-big. --- src/network/network.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/network/network.cc b/src/network/network.cc index 20ac835..8057dc0 100644 --- a/src/network/network.cc +++ b/src/network/network.cc @@ -94,8 +94,8 @@ void Connection::setup( void ) throw NetworkException( "socket", errno ); } - /* Enable path MTU discovery */ - char flag = IP_PMTUDISC_DO; + /* Disable path MTU discovery */ + 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 );