diff options
Diffstat (limited to 'sys/netinet6/ah_input.c')
| -rw-r--r-- | sys/netinet6/ah_input.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/netinet6/ah_input.c b/sys/netinet6/ah_input.c index 070883e7a624..4ee2a994c5f0 100644 --- a/sys/netinet6/ah_input.c +++ b/sys/netinet6/ah_input.c @@ -94,8 +94,7 @@ #define IPLEN_FLIPPED #ifdef INET -#include <netinet/ipprotosw.h> -extern struct ipprotosw inetsw[]; +extern struct protosw inetsw[]; void #if __STDC__ @@ -122,7 +121,7 @@ ah4_input(m, va_alist) va_start(ap, m); off = va_arg(ap, int); - proto = va_arg(ap, int); + proto = mtod(m, struct ip *)->ip_p; va_end(ap); #ifndef PULLDOWN_TEST @@ -550,7 +549,7 @@ ah4_input(m, va_alist) ipsecstat.in_polvio++; goto fail; } - (*inetsw[ip_protox[nxt]].pr_input)(m, off, nxt); + (*inetsw[ip_protox[nxt]].pr_input)(m, off); } else m_freem(m); m = NULL; |
