Re: gre.* & FreeBSD 4.0

From: Alejandro Ramirez <[email protected]>
Date: Mon, 8 May 2000 17:24:58 -0500

From: <squid@x-wing.cc.boun.edu.tr

> 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 Mon May 08 2000 - 16:31:14 MDT

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