Can't get capture working #308
Replies: 3 comments 3 replies
-
show tcpdump output |
Beta Was this translation helpful? Give feedback.
-
I don't use a mac, but in the README for MAC OS we have:
|
Beta Was this translation helpful? Give feedback.
-
Evidently you have to set immediate mode. This example works fine: let mut cap = Capture::from_device("en1")
|
Beta Was this translation helpful? Give feedback.
-
I can list the existing devices okay using the Device::List() function, so i know that libpcap is installed and working fine on my Mac OSX machine.
But when i try to capture some packets on the "en1" interface (my wifi port which is quite active and tcpdump shows plenty of action), it just hangs. Can someone please tell me what i am doing wrong?
I don't understand how to get past square one with this library.
let mut cap = Capture::from_device("en1").unwrap()
.open().unwrap();
Beta Was this translation helpful? Give feedback.
All reactions