manuf 0.1.0

Ethernet vendor codes, and well-known MAC addresses
Documentation

rust-manuf

LICENSE Crates.io Version Document Build Status

rust-manuf is rust library provides Ethernet vendor codes, and well-known MAC addresses

Example

#[macro_use]
extern crate manuf;

assert_eq!(
    manuf::vendor(&[0x8c, 0x85, 0x90, 0x0b, 0xcb, 0x9e]),
    Some(("Apple", "Apple, Inc."))
);

assert!(
    manuf::prefix("Apple")
        .any(|prefix| prefix == (&[0x8c, 0x85, 0x90, 0x00, 0x00, 0x00], 24))
);

Note: The manuf file was generated by the Wireshark project.

License

Released under the terms of the MIT license.