From owner-freebsd-questions Sat Sep 14 22:32:33 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 DFC3637B400 for ; Sat, 14 Sep 2002 22:32:30 -0700 (PDT) Received: from ws1-2.us4.outblaze.com (205-158-62-54.outblaze.com [205.158.62.54]) by mx1.FreeBSD.org (Postfix) with SMTP id 8F6FE43E6A for ; Sat, 14 Sep 2002 22:32:30 -0700 (PDT) (envelope-from jahil@mail.com) Received: (qmail 30345 invoked by uid 1001); 15 Sep 2002 05:32:30 -0000 Message-ID: <20020915053230.30344.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-2.us4.outblaze.com with http for jahil@mail.com; Sun, 15 Sep 2002 10:32:30 +0500 From: "Masood Ahmad Shah" To: "freebsd users" Date: Sun, 15 Sep 2002 10:32:30 +0500 Subject: wccp patch for FreeBSD X-Originating-Ip: 202.165.246.28 X-Originating-Server: ws1-2.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 how can i ptach my kernel with this source I have got this source and now I want to patch it is there any way please tell me to patching the kernel.--- 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 *)); tell me how I can patch with my kernel it. best regards, Masood Ahmad 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