PERFORCE change 133141 for review
Sam Leffler
sam at FreeBSD.org
Sat Jan 12 15:50:49 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=133141
Change 133141 by sam at 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;
More information about the p4-projects
mailing list