]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Graham Keeling <graham@equiinet.com>
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 31 Jan 2010 06:20:21 +0000 (19:20 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 31 Jan 2010 06:20:21 +0000 (19:20 +1300)
WCCPv1 not connecting to router correctly

I am coming across a problem with WCCPv1...

squid-2.5 connects to UDP port 2048, I get replies, and everything else then works.

squid-3.1 looks like it is trying to connect to UDP port 0 on the cisco.
[and fails to work]

I have looked at the src/wccp.c for squid-2.5, and it is clear that the port is
being set to 2048 for the connection to the router.
I have also looked at the source for 2.6, 2.7 and 3.0 (src/wccp.cc for this
version).
In all those, it appears to be setting the port on the outgoing connection.

However, in the 3.1 source, it doesn't.

src/wccp.cc

index d164b9e8c9ceb2d2db14a7657c11d1c9d7bb1b47..ff70e77ad91a807d3eaa1361db347338553e6f98 100644 (file)
@@ -146,6 +146,7 @@ wccpConnectionOpen(void)
     }
 
     Config.Wccp.address.SetPort(WCCP_PORT);
+    Config.Wccp.router.SetPort(WCCP_PORT);
 
     theWccpConnection = comm_open_listener(SOCK_DGRAM,
                                            IPPROTO_UDP,