[ieee80211] [patch] BPF taps not working for ieee80211 interfaces in monitor mode
Patrick Kelsey
kelsey at ieee.org
Thu Oct 10 00:27:57 UTC 2013
Hi,
A bug was introduced in r254082 that results in BPF taps never being
enabled for ieee80211 interfaces that are in monitor mode.
Before r254082, bpf_track() in sys/net80211/ieee80211_freebsd.c was
identifying ieee80211 interfaces by checking to see if the value of
the ifp->if_start pointer was equal to ieee80211_start. r254082 was a
move away from using if_start to using if_transmit in the ieee80211
stack, and bpf_track() was correspondingly updated to check the value
of ifp->if_transmit against ieee80211_vap_transmit. The problem is
that ifp->if_transmit is set to null_transmit by
ieee80211_vap_attach() in sys/net80211/ieee80211.c for interfaces that
are in monitor mode (code that has been in place since r195846).
One fix that resolves the issue is to use what is likely to be a more
stable signature in the check in bpf_track().
A patch against r256155 is attached.
-Patrick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ieee80211_bpf_track.patch
Type: application/octet-stream
Size: 628 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-net/attachments/20131009/771eb5f2/attachment.obj>
More information about the freebsd-net
mailing list