Date: Wed, 11 Dec 2002 17:21:18 +0200 From: Gokhan Eryol <eryol@metu.edu.tr> To: freebsd-net@freebsd.org Subject: freebsd 4.7-stable kernel gre tunnel support for squid's wccp cisco interaction Message-ID: <200212111521.gBBFLJO27181@myra.cc.metu.edu.tr>
next in thread | raw e-mail | index | archive | help
Hello, I upgraded /usr/src from 4.7-RELEASE to 4.7-STABLE by cvs and trying to compile it for transparent web-caching with squid (wccp support). I tried the steps described in http://www.squid-cache.org/Doc/FAQ/FAQ-17.html as i did before. I knew from older experiences that the gre.patch given here was wrong in last part (cause of removed "__P(...)" stuffs in the file ip_var.h) so you had to do the changes manually. However, by the date 20-Nov-2002, new patch released at http://www.squid-cache.org/WCCP-support/FreeBSD-4.x/4.7-gre.patch . Unfortunately, even this patch's last part designed for 4.7 - ip_var.h format, again fails for 4.7-STABLE, so you have to do the last part manually again (line 185 at /usr/src/sys/netinet/ip_var.h changed from "void ipip_input(struct mbuf *, int, int);" to "extern void (*ipip_input)(struct mbuf *, int, int);" ). Real problems starts here. Firstly, when you do the gre patches for wccp support, and try the compile the kernel with "option GRE", following error appears: In file included from /usr/src/sys/net/if_gre.c:77: /usr/src/sys/netinet/ip_var.h:184: conflicting types for `gre_input' /usr/src/sys/netinet/ip_gre.h:41: previous declaration of `gre_input' /usr/src/sys/netinet/ip_var.h:184: warning: redundant redeclaration of `gre_input' in same scope /usr/src/sys/netinet/ip_gre.h:41: warning: previous declaration of `gre_input' /usr/src/sys/net/if_gre.c:120: warning: initialization from incompatible pointer type /usr/src/sys/net/if_gre.c:120: warning: initialization from incompatible pointer type /usr/src/sys/net/if_gre.c:127: warning: initialization from incompatible pointer type /usr/src/sys/net/if_gre.c:127: warning: initialization from incompatible pointer type *** Error code 1 Stop in /usr/obj/usr/src/sys/BIGMETUCACHE. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. I realized the file /usr/src/sys/netinet/ip_gre.h with the line "void gre_input(struct mbuf *, ...);" but the patch defined it as "void gre_input(struct mbuf *, int, int);" ip ip_var.h file. The file is changed at 1.Dec.2002 . I tried some other things but didn't work. How can i enable wccp support on FreeBSD-4.7-STABLE updated today? I would appreciate any suggestions. Thanks, Gokhan ERYOL To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200212111521.gBBFLJO27181>