gre.c

From: <squid@dont-contact.us>
Date: 20 Apr 2000 06:30:46 -0000

Hi;
 
FreeBSD 4.0 RELEASE has added yet another parameter to rip_input(), therefore
gre.c will not compile by default.
 
--- gre.c Thu Apr 20 09:00:16 2000
+++ gre.c.o Thu Apr 20 08:59:20 2000
@@ -38,9 +38,9 @@
 };
 
 void
-gre_input(m, iphlen)
+gre_input(m, iphlen, proto)
      register struct mbuf *m;
- int iphlen;
+ int iphlen, proto;
 {
     register struct ip *ip = mtod(m, struct ip *);
     register struct gre *gre;
@@ -57,7 +57,7 @@
     gre = (struct gre *) ((caddr_t) ip + iphlen);
     if (ntohl(gre->type) != GRE_PROTOCOL_TYPE) {
     if (ntohl(gre->type) != GRE_PROTOCOL_TYPE) {
        printf("gre_input: bad GRE type %x\n", gre->type);
- rip_input(m, iphlen);
+ rip_input(m, iphlen, proto);
        return;
     }
     if (m->m_len < len) {

--- gre.patch Thu Apr 20 10:39:37 2000
+++ gre.patch.o Thu Apr 20 10:38:56 2000
@@ -95,7 +95,7 @@
   void rip_init __P((void));
   void rip_input __P((struct mbuf *, int));
   int rip_output __P((struct mbuf *, struct socket *, u_long));
-+ void gre_input __P((struct mbuf *, int, int));
++ void gre_input __P((struct mbuf *, int));
   void ipip_input __P((struct mbuf *, int));
   void rsvp_input __P((struct mbuf *, int));
   int ip_rsvp_init __P((struct socket *));
Received on Thu Apr 20 2000 - 01:31:36 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:52:59 MST