Date: Tue, 13 Feb 2007 14:54:35 GMT From: Sepherosa Ziehau <sephe@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 114452 for review Message-ID: <200702131454.l1DEsZI6043207@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=114452 Change 114452 by sephe@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702131454.l1DEsZI6043207>