DragonFlyBSD / DPorts

The dedicated application build system for DragonFly BSD
Other
89 stars 46 forks source link

enable USB capture in net/libpcap on DragonFly #185

Closed jfhg closed 7 years ago

jfhg commented 7 years ago

As DragonFly's USB subsystem is heavily based on FreeBSD's we can simply enable the USB capture code for FreeBSD in net/libpcap as with attached patch. USB packets can then be captured with e.g. /usr/local/sbin/tcpdump -i usbus1 -w /tmp/usb.pkts. patch-pcap-bpf.c.txt

jrmarino commented 7 years ago

thanks, committed: 0bcb0be8408a5ff08d7bb60083929226e39ecb92