rust-manuf
rust-manuf
is a Rust library provides the Ethernet vendor codes, and well-known MAC addresses
Usage
To use rust-manuf
, add this to your Cargo.toml
:
[]
= "0.2"
Use vendor
function to find name and description base on an ethernet (MAC) address.
assert_eq!;
Use prefix
function to find vendor's prefix and mask for the ethernet (MAC) address.
assert!;
use parse
function to extract verdor's ((prefix, prefix_length), (name, description))
from a manuf
file.
let f = open.unwrap;
let r = new;
for in parse
Note: The manuf file was generated by the Wireshark project.
If you want to use the latest version of manuf
file, please add the latest
feature.
[]
= { = "0.2", = ["latest"] }
License
Released under the terms of the MIT license.