summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_ah_new.c
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>1998-01-21 18:43:35 +0000
committerNiels Provos <provos@cvs.openbsd.org>1998-01-21 18:43:35 +0000
commit8dff0dc8feca6cd4b0fa4e55fa5509505b0f55e1 (patch)
tree9800074f590a83548bd8b8c4c9400a04dfbb0610 /sys/netinet/ip_ah_new.c
parent5bd1d016eb4ec6100b54375aed76d6604d436cbc (diff)
rcvif not needed.
Diffstat (limited to 'sys/netinet/ip_ah_new.c')
-rw-r--r--sys/netinet/ip_ah_new.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/sys/netinet/ip_ah_new.c b/sys/netinet/ip_ah_new.c
index 08c51acc335..4721cb5fc4b 100644
--- a/sys/netinet/ip_ah_new.c
+++ b/sys/netinet/ip_ah_new.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ah_new.c,v 1.14 1997/11/24 19:14:12 provos Exp $ */
+/* $OpenBSD: ip_ah_new.c,v 1.15 1998/01/21 18:43:32 provos Exp $ */
/*
* The author of this code is John Ioannidis, ji@tla.org,
@@ -271,7 +271,6 @@ ah_new_input(struct mbuf *m, struct tdb *tdb)
struct ah_new_xdata *xd;
struct ip *ip, ipo;
struct ah_new *aho, *ah;
- struct ifnet *rcvif;
int ohlen, len, count, off, errc;
u_int32_t btsx;
struct mbuf *m0;
@@ -289,16 +288,6 @@ ah_new_input(struct mbuf *m, struct tdb *tdb)
ohlen = sizeof(struct ip) + AH_NEW_FLENGTH;
- rcvif = m->m_pkthdr.rcvif;
- if (rcvif == NULL)
- {
-#ifdef ENCDEBUG
- if (encdebug)
- printf("ah_new_input(): receive interface is NULL!!!\n");
-#endif /* ENCDEBUG */
- rcvif = &enc_softc;
- }
-
if (m->m_len < ohlen)
{
if ((m = m_pullup(m, ohlen)) == NULL)
@@ -501,7 +490,6 @@ ah_new_input(struct mbuf *m, struct tdb *tdb)
m->m_len -= AH_NEW_FLENGTH;
m->m_data += AH_NEW_FLENGTH;
m->m_pkthdr.len -= AH_NEW_FLENGTH;
- m->m_pkthdr.rcvif = rcvif; /* this should not be necessary */
ip = mtod(m, struct ip *);
*ip = ipo;