summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in_gif.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2001-09-03 20:03:55 +0000
committerjulian <julian@FreeBSD.org>2001-09-03 20:03:55 +0000
commit071f86f9f1c961dd8169268ab4895d7ed7a350f0 (patch)
tree8d09274631c646d1bfce4acc158d08cc765103da /sys/netinet/in_gif.c
parentb278777ba611a10a308ea300780edcc62fdb7d3d (diff)
downloadFreeBSD-src-071f86f9f1c961dd8169268ab4895d7ed7a350f0.zip
FreeBSD-src-071f86f9f1c961dd8169268ab4895d7ed7a350f0.tar.gz
Patches from Keiichi SHIMA <keiichi@iij.ad.jp>
to make ip use the standard protosw structure again. Obtained from: Well, KAME I guess.
Diffstat (limited to 'sys/netinet/in_gif.c')
-rw-r--r--sys/netinet/in_gif.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/in_gif.c b/sys/netinet/in_gif.c
index f010bbf..46c10e0 100644
--- a/sys/netinet/in_gif.c
+++ b/sys/netinet/in_gif.c
@@ -202,17 +202,18 @@ in_gif_output(ifp, family, m, rt)
}
void
-in_gif_input(m, off, proto)
+in_gif_input(m, off)
struct mbuf *m;
int off;
- int proto;
{
struct ifnet *gifp = NULL;
struct ip *ip;
int af;
u_int8_t otos;
+ int proto;
ip = mtod(m, struct ip *);
+ proto = ip->ip_p;
gifp = (struct ifnet *)encap_getarg(m);
OpenPOWER on IntegriCloud