2 unstable releases
0.1.0 | Jun 24, 2024 |
---|---|
0.0.1 | Jun 24, 2024 |
#5 in #bgpkit
28 downloads per month
Used in bgpkit-commons
18KB
184 lines
as2org-rs
: utility crate for accessing CAIDA AS to organization mapping
This readme is generated from the library's doc comments using cargo-readme. Please refer to the Rust docs website for the full documentation
CAIDA as2org utility.
Data source
- The CAIDA AS Organizations Dataset.
Data structure
As2orgAsInfo
:
asn
: the AS numbername
: the name provide for the individual AS numbercountry_code
: the country code of the organization's registration countryorg_id
: maps to an organization entryorg_name
: the name of the organizationsource
: the RIR or NIR database which was contained this entry
Examples
use as2org_rs::As2org;
let as2org = As2org::new(None).unwrap();
dbg!(as2org.get_as_info(400644).unwrap());
dbg!(as2org.get_siblings(15169).unwrap());
assert!(as2org.are_siblings(15169, 36040));
License
MIT
Dependencies
~3–5MB
~91K SLoC