summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2016-04-15 03:04:28 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2016-04-15 03:04:28 +0000
commit17a64e6031a05d3058684fdba4ea1623391ab08b (patch)
tree3f9f2fe4bd3fbf2c57c05235403d6786a2ceb0c9
parentc9ef32635ff4e60ab1e7b323f60c7ee38a55971f (diff)
replace m_copym2 with m_dup_pkt
tested by and ok stsp@
-rw-r--r--sys/net80211/ieee80211_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_input.c b/sys/net80211/ieee80211_input.c
index e8cb07ad1df..d7dd82849cc 100644
--- a/sys/net80211/ieee80211_input.c
+++ b/sys/net80211/ieee80211_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211_input.c,v 1.170 2016/04/12 14:33:27 mpi Exp $ */
+/* $OpenBSD: ieee80211_input.c,v 1.171 2016/04/15 03:04:27 dlg Exp $ */
/*-
* Copyright (c) 2001 Atsushi Onoe
@@ -901,7 +901,7 @@ ieee80211_deliver_data(struct ieee80211com *ic, struct mbuf *m,
struct ieee80211_node *ni1;
if (ETHER_IS_MULTICAST(eh->ether_dhost)) {
- m1 = m_copym2(m, 0, M_COPYALL, M_DONTWAIT);
+ m1 = m_dup_pkt(m, ETHER_ALIGN, M_DONTWAIT);
if (m1 == NULL)
ifp->if_oerrors++;
else