Re: [squid-users] squid-3.1.0.15 and WCCPv1

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sun, 31 Jan 2010 19:18:59 +1300

Graham Keeling wrote:
> On Fri, Jan 29, 2010 at 03:59:29PM +0000, Graham Keeling wrote:
>> On Fri, Jan 29, 2010 at 11:35:00AM +0000, Graham Keeling wrote:
>>> Hello,
>>>
>>> I am trying to upgrade my squid from 2.5 to 3.1.
>>> I have got all my old configuration working on 3.1, except...
>>> I am coming across a problem with WCCPv1.
>>>
>>> 172.16.13.56 is the address of the squid box.
>>> 172.16.13.2 is the address of the cisco router.
>>> I have wccp_router=172.16.13.2 in my squid.conf.
>>>
>>> squid-2.5 connects to UDP port 2048, I get replies, and everything else then
>>> works. Here is a tcpdump of the initial connection:
>>>
>>> 16:12:13.404466 IP 172.16.13.56.2048 > 172.16.13.2.2048: UDP, length 52
>>> 16:12:13.406764 IP 172.16.13.2.2048 > 172.16.13.56.2048: UDP, length 64
>>>
>>>
>>> But, squid-3.1 looks like it is trying to connect to UDP port 0 on the cisco.
>>> Here is the equivalent tcpdump with squid-3.1:
>>>
>>> 15:59:10.093415 IP 172.16.13.56.2048 > 172.16.13.2.0: UDP, length 52
>>> 15:59:10.094423 IP 172.16.13.2 > 172.16.13.56: ICMP 172.16.13.2 udp port 0 unreachable, length
>>>
>>>
>>> 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.
>>>
>>> Is this a bug?
>>>
>>> Has anybody got WCCPv1 working with squid-3.1?
>>
>> Further information:
>> I've now tried squid-3.0.STABLE21, and WCCPv1 worked fine.
>>
>> Conclusion:
>> WCCPv1 is broken in squid-3.1.
>>
>> Is this the correct list to be reporting this to?
>
> My squid-3.1 WCCPv1 appears to work with the attached patch that I just made.
>

Um. No. squid-dev is the list for all that about beta releases.
Particularly for patches.

But nevermind, I've received the patch and added it to the next 3.1 release.

Thank you.
Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE7 or 3.0.STABLE21
   Current Beta Squid 3.1.0.15
Received on Sun Jan 31 2010 - 06:19:12 MST

This archive was generated by hypermail 2.2.0 : Sun Jan 31 2010 - 12:00:04 MST