diff options
Diffstat (limited to 'sys/netinet/ip_encap.c')
-rw-r--r-- | sys/netinet/ip_encap.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/sys/netinet/ip_encap.c b/sys/netinet/ip_encap.c index 2476d71..e3844df 100644 --- a/sys/netinet/ip_encap.c +++ b/sys/netinet/ip_encap.c @@ -127,26 +127,17 @@ encap_init() #ifdef INET void -#if __STDC__ -encap4_input(struct mbuf *m, ...) -#else -encap4_input(m, va_alist) +encap4_input(m, off) struct mbuf *m; - va_dcl -#endif + int off; { - int off, proto; struct ip *ip; + int proto; struct sockaddr_in s, d; const struct protosw *psw; struct encaptab *ep, *match; - va_list ap; int prio, matchprio; - va_start(ap, m); - off = va_arg(ap, int); - va_end(ap); - ip = mtod(m, struct ip *); proto = ip->ip_p; |