Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
digizeph committed Oct 3, 2024
1 parent d9e7c3c commit a9c1d8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ keywords = ["bgp", "bgpkit"]
as2org-rs = "0.1.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1"
oneio = { version = "0.17.0-beta.1", default-features = false, features = ["lib-core"] }
oneio = { version = "0.17.0", default-features = false, features = ["lib-core"] }
regex = "1"
anyhow = "1.0"
chrono = { version = "0.4", features = ["serde"] }
ipnet-trie = "0.1.0"
ipnet-trie = "0.2.0"
ipnet = { version = "2.9", features = ["serde"] }
tar = "0.4"
tracing = "0.1"
Expand Down
3 changes: 1 addition & 2 deletions src/rpki/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,8 @@ impl RpkiTrie {

/// Lookup all ROAs that match a given prefix, including invalid ones
pub fn lookup_by_prefix(&self, prefix: &IpNet) -> Vec<RoaEntry> {
let first_ip = prefix.addr();
let mut all_matches = vec![];
for (p, roa) in self.trie.matches(first_ip) {
for (p, roa) in self.trie.matches(prefix) {
if p.contains(prefix) && roa.max_length >= prefix.prefix_len() {
all_matches.push(*roa);
}
Expand Down

0 comments on commit a9c1d8e

Please sign in to comment.