It works. Thanks you very much!
...As part of the GRE mode, gre also supports Cisco WCCP protocol, both version 1 and version 2. Since there is no reliable way to distinguish between WCCP versions, it should be configured manually using the link2 flag. If the link2 flag is not set (default), then WCCP version 1 is selected.
----- Original Message ----- From: "Francis Vidal" <francisv.list@xxxxxxxxx>
To: "Bin Liu" <binliu.lqbn@xxxxxxxxx>
Sent: Thursday, April 07, 2005 8:41 AM
Subject: Re: [squid-users] Help with Squid 2.5 on FreeBSD 5.3 and WCCP
I think you need to specify "link2" when you create the tunnel to activate WCCPv2 instead of WCCPv1. `man gre'.
On Apr 6, 2005 8:45 PM, Bin Liu <binliu.lqbn@xxxxxxxxx> wrote:I've already got my FreeBSD 5.3 box running with squid 2.5 and WCCPv1 successfully, but when I switched to WCCPv2, it failed. It seems that if_gre module can't decapsulate the WCCPv2 packets correctly. I ran tcpdump -i gre0, the only thing I got is "IP0 bad-hlen 0" :(
Can FreeBSD 5.3 support WCCPv2? I see the following lines in sys/netinet/ip_gre.c
case WCCP_PROTOCOL_TYPE: if (sc->wccp_ver == WCCP_V2) hlen += 4;