diff --git a/crates/pmacct-gauze-bindings/Cargo.toml b/crates/pmacct-gauze-bindings/Cargo.toml index e2df667..1143823 100644 --- a/crates/pmacct-gauze-bindings/Cargo.toml +++ b/crates/pmacct-gauze-bindings/Cargo.toml @@ -15,8 +15,8 @@ quote = "1.0.33" phf = "0.11.2" ipnet = { version = "2.9.0", features = [] } libc = "0.2.149" -netgauze-bgp-pkt = { version = "0.4.1" } -netgauze-iana = { version = "0.4.1" } +netgauze-bgp-pkt = { version = "0.5.0" } +netgauze-iana = { version = "0.5.0" } chrono = "0.4.32" [features] diff --git a/crates/pmacct-gauze-lib/Cargo.toml b/crates/pmacct-gauze-lib/Cargo.toml index 4a5a0f6..382e076 100644 --- a/crates/pmacct-gauze-lib/Cargo.toml +++ b/crates/pmacct-gauze-lib/Cargo.toml @@ -11,11 +11,11 @@ bindgen-bridge = { git = "https://github.com/mxyns/bindgen-bridge" } [dependencies] libc = "0.2.148" -netgauze-parse-utils = { version = "0.4.1" } -netgauze-bmp-pkt = { version = "0.4.1", features = ["codec"] } -netgauze-bgp-pkt = { version = "0.4.1", features = ["codec"] } -netgauze-serde-macros = { version = "0.4.1" } -netgauze-iana = { version = "0.4.1" } +netgauze-parse-utils = { version = "0.5.0" } +netgauze-bmp-pkt = { version = "0.5.0", features = ["codec"] } +netgauze-bgp-pkt = { version = "0.5.0", features = ["codec"] } +netgauze-serde-macros = { version = "0.5.0" } +netgauze-iana = { version = "0.5.0" } nom = "7.1.3" pmacct-gauze-bindings = { path = "../pmacct-gauze-bindings" } c_str_macro = "1.0.3" diff --git a/crates/pmacct-gauze-lib/src/capi/bgp/update.rs b/crates/pmacct-gauze-lib/src/capi/bgp/update.rs index 5daf098..8bb59e2 100644 --- a/crates/pmacct-gauze-lib/src/capi/bgp/update.rs +++ b/crates/pmacct-gauze-lib/src/capi/bgp/update.rs @@ -553,8 +553,8 @@ pub(crate) fn process_attributes( | PathAttributeValue::Aggregator(_) | PathAttributeValue::Originator(_) | PathAttributeValue::ClusterList(_) - | PathAttributeValue::BgpLs(_) => {} - PathAttributeValue::UnknownAttribute(_) => pmacct_log( + | PathAttributeValue::BgpLs(_) + | PathAttributeValue::PrefixSegmentIdentifier(_) => pmacct_log( LogPriority::Warning, &format!( "[pmacct-gauze] warn! attribute type {} is not supported by pmacct\n", @@ -564,6 +564,16 @@ pub(crate) fn process_attributes( .unwrap_or_else(|unknown| unknown) ), ), + PathAttributeValue::UnknownAttribute(_) => pmacct_log( + LogPriority::Warning, + &format!( + "[pmacct-gauze] warn! attribute type {} is not supported by netgauze\n", + _attr + .path_attribute_type() + .map(|__attr| __attr as u8) + .unwrap_or_else(|unknown| unknown) + ), + ), }; } diff --git a/crates/pmacct-gauze-lib/src/capi/bmp/parse/context.rs b/crates/pmacct-gauze-lib/src/capi/bmp/parse/context.rs index e442ab8..115f519 100644 --- a/crates/pmacct-gauze-lib/src/capi/bmp/parse/context.rs +++ b/crates/pmacct-gauze-lib/src/capi/bmp/parse/context.rs @@ -7,7 +7,6 @@ use pmacct_gauze_bindings::bmp_peer; use crate::context_cache::ContextCache; use crate::extensions::bmp_message::ExtendBmpMessage; -use crate::extensions::context::ExtendBmpParsingContext; use crate::opaque::Opaque; use crate::{free_rust_raw_box, make_default};