From: Amos Jeffries Date: Sun, 31 Jan 2010 06:20:21 +0000 (+1300) Subject: Author: Graham Keeling X-Git-Tag: SQUID_3_2_0_1~440 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=83fa02216e296fcd971b2f639448146ca6852353;p=thirdparty%2Fsquid.git Author: Graham Keeling 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. --- diff --git a/src/wccp.cc b/src/wccp.cc index d164b9e8c9..ff70e77ad9 100644 --- a/src/wccp.cc +++ b/src/wccp.cc @@ -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,