summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorangelos <angelos@openbsd.org>2002-06-09 00:58:32 +0000
committerangelos <angelos@openbsd.org>2002-06-09 00:58:32 +0000
commite17e208fd2b281fccf0fb15c97d3573ee0d819fd (patch)
treed133e6cc438c46d6045c9cea36fc0198b93047b8
parentHandle out of memory gracefully. ok miod@ (diff)
downloadwireguard-openbsd-e17e208fd2b281fccf0fb15c97d3573ee0d819fd.tar.xz
wireguard-openbsd-e17e208fd2b281fccf0fb15c97d3573ee0d819fd.zip
Set/clear M_AUTH_AH.
-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;