easylisten/
easylisten.rs

1extern crate pcap;
2
3fn main() {
4    // get the default Device
5    let mut cap = pcap::Device::lookup().unwrap().open().unwrap();
6
7    // get a packet and print its bytes
8    println!("{:?}", cap.next());
9}