From owner-freebsd-questions Fri Sep 13 23: 2: 7 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9827937B400 for ; Fri, 13 Sep 2002 23:02:02 -0700 (PDT) Received: from ws1-1.us4.outblaze.com (205-158-62-49.outblaze.com [205.158.62.49]) by mx1.FreeBSD.org (Postfix) with SMTP id 5469143E6E for ; Fri, 13 Sep 2002 23:02:02 -0700 (PDT) (envelope-from jahil@mail.com) Received: (qmail 43846 invoked by uid 1001); 14 Sep 2002 06:02:02 -0000 Message-ID: <20020914060202.43845.qmail@mail.com> Content-Type: text/plain; charset="iso-8859-15" Content-Disposition: inline Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Mailer: MIME-tools 5.41 (Entity 5.404) Received: from [202.165.246.28] by ws1-1.us4.outblaze.com with http for jahil@mail.com; Sat, 14 Sep 2002 11:02:02 +0500 From: "Masood Ahmad Shah" To: "freebsd users" Date: Sat, 14 Sep 2002 11:02:02 +0500 Subject: patching the kernel X-Originating-Ip: 202.165.246.28 X-Originating-Server: ws1-1.us4.outblaze.com Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Sir, I'm running Squid (Proxy Server) on FreeBSD. Now I want to run wccp. so as Squid FAQ saying I will have to patch the kernel with this source code --- sys/conf/files.orig Fri Sep 21 01:32:04 2001 +++ sys/conf/files Mon Sep 24 11:29:46 2001 @@ -839,6 +839,7 @@ netinet/ip_mroute.c optional inet netinet/ip_output.c optional inet netinet/raw_ip.c optional inet +netinet/gre.c optional gre netinet/tcp_debug.c optional tcpdebug netinet/tcp_input.c optional inet netinet/tcp_output.c optional inet --- sys/conf/options.orig Mon Sep 17 12:09:57 2001 +++ sys/conf/options Mon Sep 24 11:29:46 2001 @@ -260,6 +260,7 @@ IPV6FIREWALL_VERBOSE_LIMIT opt_ip6fw.h IPV6FIREWALL_DEFAULT_TO_ACCEPT opt_ip6fw.h IPSTEALTH +GRE opt_gre.h IPX opt_ipx.h IPXIP opt_ipx.h IPTUNNEL opt_ipx.h --- sys/netinet/in_proto.c.orig Fri Jul 27 01:33:15 2001 +++ sys/netinet/in_proto.c Mon Sep 24 11:42:31 2001 @@ -38,6 +38,7 @@ #include "opt_ipx.h" #include "opt_ipsec.h" #include "opt_inet6.h" +#include "opt_gre.h" #include #include @@ -116,6 +117,14 @@ 0, 0, 0, 0, &rip_usrreqs }, +#ifdef GRE +{ SOCK_RAW, &inetdomain, IPPROTO_GRE, PR_ATOMIC|PR_ADDR, + gre_input, 0, 0, rip_ctloutput, + 0, + 0, 0, 0, 0, + &rip_usrreqs +}, +#endif { SOCK_RAW, &inetdomain, IPPROTO_ICMP, PR_ATOMIC|PR_ADDR|PR_LASTHDR, icmp_input, 0, 0, rip_ctloutput, 0, --- sys/netinet/ip_var.h.orig Fri Jul 20 01:32:49 2001 +++ sys/netinet/ip_var.h Mon Sep 24 11:29:46 2001 @@ -178,6 +178,7 @@ void rip_init __P((void)); void rip_input __P((struct mbuf *, int, int)); int rip_output __P((struct mbuf *, struct socket *, u_long)); +void gre_input __P((struct mbuf *, int, int)); void ipip_input __P((struct mbuf *, int, int)); void rsvp_input __P((struct mbuf *, int, int)); int ip_rsvp_init __P((struct socket *)); so I have this code I don't know where I can place it and in which file I will save and where I will save this file is there any way how can i ptach this source with my Kernel. best regards Masood Ahamd Shah -- __________________________________________________________ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message