arp-parse

Crates.ioarp-parse
lib.rsarp-parse
version0.1.0
sourcesrc
created_at2021-11-26 04:23:35.660891
updated_at2021-11-26 04:23:35.660891
descriptionARP parsing and building library
homepage
repositoryhttps://github.com/fengyc/arp-parse-rs/
max_upload_size
id487891
size15,474
Yingcai Feng (fengyc)

documentation

https://docs.rs/arp-parse/

README

arp-parse

Main

RFC826 ARP packet parsing and building.

Examples

Parse arp frame

let buff = [...];
let slice = arp_parse::parse(&buff).unwrap();
let op_code = slice.op_code();
...

Build arp frame

let mut buff = [...];
let builder = ARPSliceBuilder::new(buff).unwrap();

There are some examples in test cases.

License

MIT

Commit count: 5

cargo fmt