From: serassio <> Date: Sun, 24 Dec 2006 20:52:40 +0000 (+0000) Subject: Bug #1584: Unable to register with multiple WCCP2 routers X-Git-Tag: SQUID_3_0_PRE6~171 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=85d25b950b53cba8943e338b7f3eb4fea04479b8;p=thirdparty%2Fsquid.git Bug #1584: Unable to register with multiple WCCP2 routers Disable PMTU-discovery on the WCCP2 UDP socket, making Linux and possibly others send unique IP ID fields in the UDP traffic. Hopefully this will convince Cisco IOS that the WCCP exchanges is not duplicate traffic. Forward port of 2.6 patch. --- diff --git a/src/wccp2.cc b/src/wccp2.cc index eed5d35f5d..175570e3b5 100644 --- a/src/wccp2.cc +++ b/src/wccp2.cc @@ -1,6 +1,6 @@ /* - * $Id: wccp2.cc,v 1.11 2006/11/22 06:07:54 adrian Exp $ + * $Id: wccp2.cc,v 1.12 2006/12/24 13:52:40 serassio Exp $ * * DEBUG: section 80 WCCP Support * AUTHOR: Steven Wilton @@ -968,6 +968,13 @@ wccp2ConnectionOpen(void) if (theWccp2Connection < 0) fatal("Cannot open WCCP Port"); +#if defined(IP_MTU_DISCOVER) && defined(IP_PMTUDISC_DONT) + { + int i = IP_PMTUDISC_DONT; + setsockopt(theWccp2Connection, SOL_IP, IP_MTU_DISCOVER, &i, sizeof i); + } + +#endif commSetSelect(theWccp2Connection, COMM_SELECT_READ, wccp2HandleUdp,