Date: Sat, 12 Jan 2008 23:50:48 GMT From: Sam Leffler <sam@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 133141 for review Message-ID: <200801122350.m0CNom0p051155@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=133141 Change 133141 by sam@sam_ebb on 2008/01/12 23:50:11 do a deep copy when distributing an mcast packet as ieee80211_decap blindly modifies the mbuf chain Affected files ... .. //depot/projects/vap/sys/net80211/ieee80211_input.c#24 edit Differences ... ==== //depot/projects/vap/sys/net80211/ieee80211_input.c#24 (text+ko) ==== @@ -75,7 +75,11 @@ if (vap->iv_opmode == IEEE80211_M_WDS) continue; if (TAILQ_NEXT(vap, iv_next) != NULL) { - mcopy = m_copypacket(m, M_DONTWAIT); + /* + * Packet contents are changed by ieee80211_decap + * so do a deep copy of the packet. + */ + mcopy = m_dup(m, M_DONTWAIT); if (mcopy == NULL) { /* XXX stat+msg */ continue;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801122350.m0CNom0p051155>