Open tjjh89017 opened 2 months ago
It does it already. What happens if you pass ""
as the iface?
I tired sample code with the following command sudo ./pcap
(default is "")
I got this error.
capturing from interface
FATA[0000] failed to set the BPF interface: error: 6
By the way, I just tested tcpdump
in MacOS M3.
I cannot use -i any
I'm not sure if there is some way to have the same behavior like Linux for Raw Socket with SO_ATTACH_FILTER on all interfaces
Also
I tested cmd/main.go with BPF string udp dst port 5566 and udp[12:4] == 2112A442
It didn't filter any packet, I still get all kinds of packet from en0
Is it possible to have a OpenLive handel to listen all interfaces in once? Thank you
Something like
tcpdump -i any