Skip to content

Commit

Permalink
move to netgauze 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mxyns committed Dec 18, 2024
1 parent 9ccba48 commit b324021
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 10 deletions.
4 changes: 2 additions & 2 deletions crates/pmacct-gauze-bindings/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
10 changes: 5 additions & 5 deletions crates/pmacct-gauze-lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
14 changes: 12 additions & 2 deletions crates/pmacct-gauze-lib/src/capi/bgp/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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)
),
),
};
}

Expand Down
1 change: 0 additions & 1 deletion crates/pmacct-gauze-lib/src/capi/bmp/parse/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};

Expand Down

0 comments on commit b324021

Please sign in to comment.