Re: [squid-users] Ip_wccp & Linux kernel 2.4.9-31

From: Joe Cooper <joe@dont-contact.us>
Date: Mon, 11 Mar 2002 08:54:57 -0600

I've posted a somewhat more recent 2.4.8 ip_gre patch (note that the
usage of this module is slightly more complex--I don't have time to
document it fully right now, but will soon).

It's on my patches page here:
http://www.swelltech.com/pengies/joe/patches/

This patch applies cleanly to every kernel I've tried since then, I
think (I know it applies to the Red Hat kernel packages of 2.4.9 without
problem).

Short usage tips:

modprobe ip_gre
ifconfig gre0 192.168.1.1
iptables -t nat -I PREROUTING -i gre0 -p tcp --dport 80 -j REDIRECT
--to-port 3128

I don't think anything else needs to be different from the usage of
ip_wccp. ip_gre needs to have a routable address from /your/ router.
It doesn't necessarily have to be a real internet routable address.
Also be warned that Red Hat's initscripts will put gre0 in front of eth0
in the routing table if you have configured gre0 to have an IP on the
same subnet. This will break connectivity completely to your local
network. So be forewarned.

Tom Hutchison wrote:
> I recently went from Redhat kernel 2.4.9-13 to 2.4.9-31 in order to fix
> a virtual memory problem Squid was experiencing. When I tried to
> recompile ip_wccp.c under the kernel 2.4.9-31 source tree I got the
> following error:
>
> gcc -D__KERNEL__ -I/usr/src/linux-2.4.9-31/include -Wall
> -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
> -fno-strict-aliasing -fno-common -Wno-unused -pipe
> -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include
> /usr/src/linux-2.4.9-31/include/linux/modversions.h -DEXPORT_SYMTAB -c
> ip_wccp.c
> ip_wccp.c:77: warning: initialization from incompatible pointer type
>
>
> When I load the compiled module It gives the following error:
>
> [ ipv4]# insmod ip_wccp
> Using /lib/modules/2.4.9-31/kernel/net/ipv4/ip_wccp.o
> /lib/modules/2.4.9-31/kernel/net/ipv4/ip_wccp.o: unresolved symbol
> inet_del_protocol_Rsmp_b440f24c
> /lib/modules/2.4.9-31/kernel/net/ipv4/ip_wccp.o: unresolved symbol
> inet_add_protocol_Rsmp_ad9b60be
> /lib/modules/2.4.9-31/kernel/net/ipv4/ip_wccp.o: unresolved symbol
> __read_lock_failed
> /lib/modules/2.4.9-31/kernel/net/ipv4/ip_wccp.o: unresolved symbol
> printk_Rsmp_1b7d4074
> /lib/modules/2.4.9-31/kernel/net/ipv4/ip_wccp.o: unresolved symbol
> ip_rcv_Rsmp_e44b3b0d
> /lib/modules/2.4.9-31/kernel/net/ipv4/ip_wccp.o: unresolved symbol
> __kfree_skb_Rsmp_4016cb34
> /lib/modules/2.4.9-31/kernel/net/ipv4/ip_wccp.o: Hint: You are trying to
> load a module without a GPL compatible license
> and it has unresolved symbols. Contact the module supplier for
> assistance, only they can help you.
>
> I have tried Joe's 2.2.18 patch and one from
> aurora.dti2.net/parches/ip_wccp-2.4.2.patch
>
> Neither one will work. If anyone can provide any help I would sure
> appreciate it. Unfortunately I am only a network engineer and have no C
> programming skills. We have three Squid servers for our schools and 2
> of them are down now.
>
> Thanks,
> Tom
>

-- 
Joe Cooper <joe@swelltech.com>
http://www.swelltech.com
Web Caching Appliances and Support
Received on Mon Mar 11 2002 - 07:56:13 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:06:49 MST