rust-pcap / pcap

Rust language pcap library
Apache License 2.0
610 stars 138 forks source link

examples/getdevices.rs now just lists devices #161

Closed stappersg closed 3 years ago

stappersg commented 3 years ago

Replaced capture code with a pointer to a "how to". Reason for not doing a capture on each device, is because it waits forever on devices without network traffic.

This change also makes the example compatible with the project feature of "list devices".

Wojtek242 commented 3 years ago

Awesome, thanks!