diff options
| author | Julian Elischer <julian@FreeBSD.org> | 2001-09-03 20:03:55 +0000 |
|---|---|---|
| committer | Julian Elischer <julian@FreeBSD.org> | 2001-09-03 20:03:55 +0000 |
| commit | f0ffb944d259efbe7c4e223b4068be440c1a51cf (patch) | |
| tree | 8d09274631c646d1bfce4acc158d08cc765103da /sys/netinet6/esp_input.c | |
| parent | 3fe149a64315002e9187d3a3c3040bd30cf3000c (diff) | |
Notes
Diffstat (limited to 'sys/netinet6/esp_input.c')
| -rw-r--r-- | sys/netinet6/esp_input.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/netinet6/esp_input.c b/sys/netinet6/esp_input.c index 4542f135d560..af12ec0d6294 100644 --- a/sys/netinet6/esp_input.c +++ b/sys/netinet6/esp_input.c @@ -97,8 +97,7 @@ ? sizeof(struct newesp) : sizeof(struct esp)) #ifdef INET -#include <netinet/ipprotosw.h> -extern struct ipprotosw inetsw[]; +extern struct protosw inetsw[]; void #if __STDC__ @@ -125,7 +124,7 @@ esp4_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); /* sanity check for alignment. */ @@ -445,7 +444,7 @@ noreplaycheck: ipsecstat.in_polvio++; goto bad; } - (*inetsw[ip_protox[nxt]].pr_input)(m, off, nxt); + (*inetsw[ip_protox[nxt]].pr_input)(m, off); } else m_freem(m); m = NULL; |
