-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using on macOS, pcapy thinks wireless interfaces (in monitor mode) are ethernet interfaces #19
Comments
Seems it's to do with pcapy not having the feature to turn on monitor mode like the original libpcap can (PcapPy seems to be the only libpcap wrapper that can actually manage this on OS X; and pypcap also works but is not thread-safe, so useless). Which is strange because pcapy should be able to use the en0 interface when it's already been put into monitor mode through some other means, but it continues to throw the Could the |
If pcapy were to implement (See also issue #23, which would also require |
Just because an interface is in monitor mode, that doesn't mean that all BPF devices bound to the interface are in monitor mode - I just ran tcpdump in two terminal windows, one with |
I installed pcapy using the source and compiled it. When I set an interface into monitor mode using tcpdump, like
sudo tcpdump -I -i en0 --linktype=IEEE802_11 -e -s 256 type mgt subtype probe-response
, packets show up just fine in that window fortcpdump
, but pcapy can't seem to tell. Capturing on pcapy on that interface causes no packets to show up. Trying to set a filter on the capture object returnspcapy.PcapError: 802.11 link-layer types supported only on 802.11
. In fact, I haven't been able to get pcapy to capture anything. Calling .datalink() on the interface capture object returns 1 (ethernet) for the wireless interface.Am I missing some dependency? Compiling pcapy went smoothly without complaints, so I can't imagine what the problem is.
The text was updated successfully, but these errors were encountered: