Releases: bgpkit/bgpkit-commons
Releases · bgpkit/bgpkit-commons
v0.7.3
Highlights
- add MRT collector peers information
- struct exposed as
crate::mrt_collectors::MrtCollectorPeer
- fetch data by calling
commons.load_mrt_collector_peers()
first - access all peers by calling
commons.mrt_collector_peers()
- access full-feed peers only by calling
commons.mrt_collector_peers_full_feed()
- struct exposed as
MrtCollectorPeer
struct definition:
pub struct MrtCollectorPeer {
/// latest available dated
pub date: NaiveDate,
/// collector peer IP
pub ip: IpAddr,
/// collector peer ASN
pub asn: u32,
/// collector name
pub collector: String,
/// number of IPv4 prefixes
pub num_v4_pfxs: u32,
/// number of IPv6 prefixes
pub num_v6_pfxs: u32,
/// number of connected ASNs
pub num_connected_asns: u32,
}
Example usage:
use bgpkit_commons::BgpkitCommons;
fn main() {
let mut commons = BgpkitCommons::new();
commons.load_mrt_collector_peers().unwrap();
let peers = commons.mrt_collector_peers();
for peer in peers {
println!("{:?}", peer);
}
let full_feed_peers = commons.mrt_collector_peers_full_feed();
for peer in full_feed_peers {
println!("{:?}", peer);
}
}
v0.7.2
Highlights
- allow exporting all bogon prefixes and asns
- update cloudflare RPKI data parsing, also added ASPA data
- added examples/list_aspas.rs to demonstrate how to list all ASPAs
v0.7.1
Highlights
- add new asinfo_all() function to return information for all ASNs in a single call
Other changes
- improve documentation
- improve ci testing workflow
- add integration tests
- update dependencies
v0.7.0
- consolidate all functionalities into a single
BgpkitCommons
instance
Example usage:
use bgpkit_commons::BgpkitCommons;
let mut bgpkit = BgpkitCommons::new();
bgpkit.load_bogons().unwrap();
assert!(bgpkit.bogons_match("23456").unwrap());
v0.6.0
- Added
bogons
module to check if an IP prefix or an ASN is a
bogon - Added
as2rel
module to provide access to AS-level relationship
data generated by BGPKIT - Added APNIC population data to
asnames
module - Added CAIDA
as2org
data toasnames
module - Added IIJ IHR Hegemony score to
asnames
module
v0.5.2
Highlights
- update
oneio
to0.16.5
to fix route-views collector API issue
v0.5.1
Highlights
- add new
bgpkit-commons
binary withexport
subcommand to export all data to JSON files - replace
reqwest
withoneio
as the default HTTP client
v0.5.0
Breaking changes
- switch to
rustls
as the default TLS backend- users can still opt-in to use
native-tls
by specifyingdefault-features = false
and usenative-tls
feature flag
- users can still opt-in to use
V0.4.3 fix regression on native-tls/rustls dependency
What's Changed
- make sure users can choose between rustls or native-tls by @digizeph in #7
- shout out to @bswinnerton for finding this issue!
Full Changelog: v0.4.2...v0.4.3
V0.4.2 rpkiviews support
What's Changed
Full Changelog: v0.4.1...v0.4.2