summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in_gif.c
diff options
context:
space:
mode:
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