PERFORCE change 138955 for review

Sam Leffler sam at FreeBSD.org
Sat Mar 29 18:24:24 PDT 2008


http://perforce.freebsd.org/chv.cgi?CH=138955

Change 138955 by sam at sam_ebb on 2008/03/30 01:23:23

	hack a raw 802.11 tap in the tx path by hooking ieee80211_encap;
	doesn't handle frags and doesn't belong here--we need to pull
	the tx aggregation up to the net80211 layer so we can do encap
	and crypto before handing to the driver

Affected files ...

.. //depot/projects/vap/sys/net80211/ieee80211_output.c#43 edit

Differences ...

==== //depot/projects/vap/sys/net80211/ieee80211_output.c#43 (text+ko) ====

@@ -1103,6 +1103,10 @@
 		IEEE80211_NODE_STAT(ni, tx_ucast);
 	IEEE80211_NODE_STAT_ADD(ni, tx_bytes, datalen);
 
+	/* XXX fragmented frames not handled */
+	if (bpf_peers_present(vap->iv_rawbpf))
+		bpf_mtap(vap->iv_rawbpf, m);
+
 	return m;
 bad:
 	if (m != NULL)


More information about the p4-projects mailing list