diff --git a/src/bogons/mod.rs b/src/bogons/mod.rs index 378d0a6..1419627 100644 --- a/src/bogons/mod.rs +++ b/src/bogons/mod.rs @@ -79,4 +79,14 @@ impl BgpkitCommons { pub fn bogons_match_asn(&self, asn: u32) -> Option { self.bogons.as_ref().map(|b| b.is_bogon_asn(asn)) } + + /// Get all bogon prefixes. + pub fn get_bogon_prefixes(&self) -> Option> { + self.bogons.as_ref().map(|b| b.prefixes.clone()) + } + + /// Get all bogon ASNs. + pub fn get_bogon_asns(&self) -> Option> { + self.bogons.as_ref().map(|b| b.asns.clone()) + } }