Skip to content

Releases: bgpkit/bgpkit-commons

v0.7.3

31 Oct 18:55
2c8a727
Compare
Choose a tag to compare

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()

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

11 Oct 19:50
7249d79
Compare
Choose a tag to compare

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

03 Oct 23:45
f183d15
Compare
Choose a tag to compare

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

03 Oct 23:08
ed45164
Compare
Choose a tag to compare
  • 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

26 Jun 20:00
d61997c
Compare
Choose a tag to compare

v0.5.2

21 Mar 02:38
0acb54a
Compare
Choose a tag to compare

Highlights

  • update oneio to 0.16.5 to fix route-views collector API issue

v0.5.1

21 Mar 01:45
707a9c3
Compare
Choose a tag to compare

Highlights

  • add new bgpkit-commons binary with export subcommand to export all data to JSON files
  • replace reqwest with oneio as the default HTTP client

v0.5.0

30 Jan 17:06
ef60691
Compare
Choose a tag to compare

Breaking changes

  • switch to rustls as the default TLS backend
    • users can still opt-in to use native-tls by specifying default-features = false and use native-tls feature flag

V0.4.3 fix regression on native-tls/rustls dependency

29 Nov 02:36
472e80b
Compare
Choose a tag to compare

What's Changed

  • make sure users can choose between rustls or native-tls by @digizeph in #7

Full Changelog: v0.4.2...v0.4.3

V0.4.2 rpkiviews support

27 Nov 18:26
bd7e72c
Compare
Choose a tag to compare

What's Changed

  • Support historical RPKI validation using rpkiviews archive by @digizeph in #6

Full Changelog: v0.4.1...v0.4.2