[squid-users] PATCH: gre.patch for FreeBSD 4.6-STABLE

From: Denis Shaposhnikov <dsh@dont-contact.us>
Date: 07 Aug 2002 10:58:40 +0400

This is a little modified gre.patch for

FreeBSD 4.6-STABLE: Tue Aug 6 10:17:25 MSD 2002

because the old one had been rejected.

--- sys/conf/files.orig Fri Aug 2 02:01:45 2002
+++ sys/conf/files Wed Aug 7 09:09:08 2002
@@ -877,6 +877,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 Fri Aug 2 02:01:49 2002
+++ sys/conf/options Wed Aug 7 09:09:08 2002
@@ -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 Wed Aug 7 09:09:08 2002
@@ -38,6 +38,7 @@
 #include "opt_ipx.h"
 #include "opt_ipsec.h"
 #include "opt_inet6.h"
+#include "opt_gre.h"
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -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 Aug 2 02:07:04 2002
+++ sys/netinet/ip_var.h Wed Aug 7 09:13:26 2002
@@ -180,6 +180,7 @@
 void rip_init(void);
 void rip_input(struct mbuf *, int, int);
 int rip_output(struct mbuf *, struct socket *, u_long);
+void gre_input(struct mbuf *, int, int);
 void ipip_input(struct mbuf *, int, int);
 void rsvp_input(struct mbuf *, int, int);
 int ip_rsvp_init(struct socket *);

-- 
DSS5-RIPE DSS-RIPN 2:550/5068@fidonet 2:550/5069@fidonet
mailto:dsh@vlink.ru http://neva.vlink.ru/~dsh/ ICQ#150639859
Received on Wed Aug 07 2002 - 00:58:43 MDT

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