use m_dup instead of m_copypacket when doing internal bridging

in case packets are modified (e.g. encrypted)

MFC after:	1 week
This commit is contained in:
Sam Leffler 2006-03-07 03:55:05 +00:00
parent 48b91889b4
commit a8eb5364fe

View File

@ -674,7 +674,7 @@ ieee80211_deliver_data(struct ieee80211com *ic,
struct mbuf *m1 = NULL;
if (ETHER_IS_MULTICAST(eh->ether_dhost)) {
m1 = m_copypacket(m, M_DONTWAIT);
m1 = m_dup(m, M_DONTWAIT);
if (m1 == NULL)
ifp->if_oerrors++;
else