Paolo Abeni wrote:
The attached patch enables sniffing from bluetooth devices for the Linux
platform.
Checked in.
I added pcap-bt-linux.h and pcap-usb-linux.h headers and had
pcap-linux.c include them if PCAP_SUPPORT_{BT,USB} is defined and had
pcap-{bt,usb}-linux.c include them unconditionally.
I also protected all calls to the USB code from pcap-linux.c with #ifdef
PCAP_SUPPORT_USB/#endif.
The intercepted frames are exactly the same produced by
hcidump.
I think various BSDs have hcidump ports; if the sniffing code from those
BSDs were incorporated into libpcap, hcidump might become more portable
(because it wouldn't have to know how to sniff on particular platforms -
I think libpcap was originally created by extracting the sniffing code
from tcpdump).
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.