Crates.io | ether |
lib.rs | ether |
version | 0.1.4 |
source | src |
created_at | 2017-01-17 17:58:44.189956 |
updated_at | 2017-07-20 17:49:13.557722 |
description | Library for parsing and manipulating network data, packet captures. |
homepage | https://github.com/jtomschroeder/ether |
repository | https://github.com/jtomschroeder/ether |
max_upload_size | |
id | 8109 |
size | 35,888 |
ether
is a crate that provides a library parsing and manipulating network data, packet captures.
NOTE: ether
is currently in the alpha phase (API is likely to change).
Here's a simple example that prints all packets received on interface en0
:
extern crate ether;
use ether::tap;
use ether::tap::Stream;
fn main() {
let mut tap = tap::Tap::new("en0").unwrap();
for packet in tap.stream().wait().filter_map(|p| p.ok()) {
println!("{:?}", packet);
}
}
interconnect
pcap
tap
ethdump
ping
trace-route