pcap 2.4.0

A packet capture API around pcap/wpcap
Documentation
1
2
3
4
5
6
7
8
9
fn main() {
    // list all of the devices pcap tells us are available
    for device in pcap::Device::list().expect("device lookup failed") {
        println!("Found device! {device:?}");

        // now you can create a Capture with this Device if you want.
        // see example/easylisten.rs for how
    }
}