]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #1584: Unable to register with multiple WCCP2 routers
authorserassio <>
Sun, 24 Dec 2006 20:52:40 +0000 (20:52 +0000)
committerserassio <>
Sun, 24 Dec 2006 20:52:40 +0000 (20:52 +0000)
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.

src/wccp2.cc

index eed5d35f5dca68bd8fff1df2cf4274ee38444a66..175570e3b50907c0241c886c2f64861218880f7b 100644 (file)
@@ -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,