PERFORCE change 114452 for review
Sepherosa Ziehau
sephe at FreeBSD.org
Tue Feb 13 14:54:37 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=114452
Change 114452 by sephe at sephe_zealot:sam_wifi on 2007/02/13 14:54:08
For DLT_IEEE802_11 / DLT_IEEE802_11_RADIO packet injection, "header
complete" option has a side effect:
It will change sa_family to non-AF_IEEE80211, thus ieee80211_output()
will fallback to ether_output(), but the buffers injected are actually
an 802.11 MAC frames. So ignore "header complete" option if sa_family
is AF_IEEE80211.
Affected files ...
.. //depot/projects/wifi/sys/net/bpf.c#21 edit
Differences ...
==== //depot/projects/wifi/sys/net/bpf.c#21 (text+ko) ====
@@ -623,7 +623,7 @@
if (error)
return (error);
- if (d->bd_hdrcmplt)
+ if (d->bd_hdrcmplt && dst.sa_family != AF_IEEE80211)
dst.sa_family = pseudo_AF_HDRCMPLT;
#ifdef MAC
More information about the p4-projects
mailing list