From 83fa02216e296fcd971b2f639448146ca6852353 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sun, 31 Jan 2010 19:20:21 +1300 Subject: [PATCH] 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. --- src/wccp.cc | 1 + 1 file changed, 1 insertion(+) 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, -- 2.47.2