summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2002-06-09 00:58:34 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2002-06-09 00:58:34 +0000
commit916e695632a43caf3995ffb19e954f234b4bc98f (patch)
treee64dbb13e171a14a2bc71181fa13a8b6fcc8a710 /sys/netinet
parent0223f72a41de28a17fbf02be5f5146f1e6078030 (diff)
Set/clear M_AUTH_AH.
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_ah.c4
-rw-r--r--sys/netinet/ip_ether.c4
-rw-r--r--sys/netinet/ipsec_input.c6
3 files changed, 7 insertions, 7 deletions
diff --git a/sys/netinet/ip_ah.c b/sys/netinet/ip_ah.c
index dd5da97c1e6..fceb0a98a7e 100644
--- a/sys/netinet/ip_ah.c
+++ b/sys/netinet/ip_ah.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ah.c,v 1.64 2002/05/31 02:22:21 angelos Exp $ */
+/* $OpenBSD: ip_ah.c,v 1.65 2002/06/09 00:58:32 angelos Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
@@ -945,7 +945,7 @@ ah_output(struct mbuf *m, struct tdb *tdb, struct mbuf **mp, int skip,
hdr.af = tdb->tdb_dst.sa.sa_family;
hdr.spi = tdb->tdb_spi;
- hdr.flags |= M_AUTH;
+ hdr.flags |= M_AUTH | M_AUTH_AH;
m1.m_next = m;
m1.m_len = ENC_HDRLEN;
diff --git a/sys/netinet/ip_ether.c b/sys/netinet/ip_ether.c
index 33d95c16bf5..2f94d459e30 100644
--- a/sys/netinet/ip_ether.c
+++ b/sys/netinet/ip_ether.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ether.c,v 1.38 2002/03/24 19:26:14 niklas Exp $ */
+/* $OpenBSD: ip_ether.c,v 1.39 2002/06/09 00:58:32 angelos Exp $ */
/*
* The author of this code is Angelos D. Keromytis (kermit@adk.gr)
*
@@ -206,7 +206,7 @@ etherip_input(struct mbuf *m, ...)
m_copydata(m, 0, sizeof(eh), (void *) &eh);
/* Reset the flags based on the inner packet */
- m->m_flags &= ~(M_BCAST|M_MCAST|M_AUTH|M_CONF);
+ m->m_flags &= ~(M_BCAST|M_MCAST|M_AUTH|M_CONF|M_AUTH_AH);
if (eh.ether_dhost[0] & 1) {
if (bcmp((caddr_t) etherbroadcastaddr,
(caddr_t)eh.ether_dhost, sizeof(etherbroadcastaddr)) == 0)
diff --git a/sys/netinet/ipsec_input.c b/sys/netinet/ipsec_input.c
index 3e9f69c4039..5344af62e7d 100644
--- a/sys/netinet/ipsec_input.c
+++ b/sys/netinet/ipsec_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipsec_input.c,v 1.55 2002/01/23 21:34:53 provos Exp $ */
+/* $OpenBSD: ipsec_input.c,v 1.56 2002/06/09 00:58:33 angelos Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
@@ -523,7 +523,7 @@ ipsec_common_input_cb(struct mbuf *m, struct tdb *tdbp, int skip, int protoff,
else if (sproto == IPPROTO_IPCOMP)
m->m_flags |= M_COMP;
else
- m->m_flags |= M_AUTH;
+ m->m_flags |= M_AUTH | M_AUTH_AH;
#if NBPFILTER > 0
bpfif = &encif[0].sc_if;
@@ -540,7 +540,7 @@ ipsec_common_input_cb(struct mbuf *m, struct tdb *tdbp, int skip, int protoff,
hdr.af = af;
hdr.spi = tdbp->tdb_spi;
- hdr.flags = m->m_flags & (M_AUTH|M_CONF);
+ hdr.flags = m->m_flags & (M_AUTH|M_CONF|M_AUTH_AH);
m1.m_next = m;
m1.m_len = ENC_HDRLEN;