Created
November 6, 2021 05:09
-
-
Save digizeph/c192454da73f1ca050282c3d9d91be8d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use bgpkit_parser::BgpkitParser; | |
fn main() { | |
let url = | |
"http://archive.routeviews.org/bgpdata/\ | |
2021.10/UPDATES/updates.20211001.0000.bz2"; | |
for elem in BgpkitParser::new(url) { | |
println!("{:?}|{:?}|{:?}|{:?}|{:?}", | |
elem.elem_type, | |
elem.timestamp, | |
elem.prefix, | |
elem.as_path, | |
elem.next_hop, | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment