as2org-rs

Crates.ioas2org-rs
lib.rsas2org-rs
version0.1.0
sourcesrc
created_at2024-06-24 20:50:50.367399
updated_at2024-06-24 20:55:03.331291
descriptionA library helps accessing CAIDA's as-to-organization mapping data.
homepage
repositoryhttps://github.com/bgpkit/as2org-rs
max_upload_size
id1282559
size62,208
Mingwei Zhang (digizeph)

documentation

https://docs.rs/as2org-rs

README

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

Crates.io Docs.rs License

CAIDA as2org utility.

Data source

Data structure

As2orgAsInfo:

  • asn: the AS number
  • name: the name provide for the individual AS number
  • country_code: the country code of the organization's registration country
  • org_id: maps to an organization entry
  • org_name: the name of the organization
  • source: 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

Commit count: 3

cargo fmt