aipn-rust - All Assigned Internet Protocol Numbers in Rust
Introduction
This crate/repository provides a list of all known Assigned Internet Protocol Numbers as per the IANA Protocol Numbers. It was created because I required a list of all protocol numbers for a project and could not find a rust crate that provided this information. Including this manually just for a single project, seemed like a waste of time. Therefore, to avoid repeating this process, I decided to create this crate.
Usage
To use this crate, add the following to your Cargo.toml:
[]
= "0.1.2"
Then, you can use the crate as follows:
use AIPN;
let protocol = AIPNTCP;
println!;
match protocol
let some_protocol_value=17;
let protocol=AIPNfrom_u8;
println!;
License
This crate is licensed under the MIT license. See the LICENSE file for more details.
Contribution
If you would like to contribute to this crate, feel free to open a pull request or an issue. I am always open to suggestions and improvements.