diff --git a/Cargo.toml b/Cargo.toml index 6261471..08e3507 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,7 +23,7 @@ futures-channel = "0.3.11" log = "0.4.8" thiserror = "1" netlink-sys = { version = "0.8" } -netlink-packet-route = { version = "0.28" } +netlink-packet-route = { version = "0.29" } netlink-packet-core = { version = "0.8" } netlink-proto = { default-features = false, version = "0.12.0" } nix = { version = "0.30.0", default-features = false, features = ["fs", "mount", "sched", "signal"] } diff --git a/src/link/bond.rs b/src/link/bond.rs index cf1c96d..07f1e33 100644 --- a/src/link/bond.rs +++ b/src/link/bond.rs @@ -5,9 +5,9 @@ use std::net::{Ipv4Addr, Ipv6Addr}; use crate::{ link::LinkMessageBuilder, packet_route::link::{ - BondAllPortActive, BondArpAllTargets, BondArpValidate, BondFailOverMac, - BondLacpRate, BondMode, BondPrimaryReselect, BondXmitHashPolicy, - InfoBond, InfoData, InfoKind, + BondAdSelect, BondAllPortActive, BondArpAllTargets, BondArpValidate, + BondFailOverMac, BondLacpRate, BondMode, BondPrimaryReselect, + BondXmitHashPolicy, InfoBond, InfoData, InfoKind, }, }; @@ -218,7 +218,7 @@ impl LinkMessageBuilder { /// Adds the `ad_select` attribute to the bond /// This is equivalent to `ip link add name NAME type bond ad_select /// AD_SELECT`. - pub fn ad_select(self, ad_select: u8) -> Self { + pub fn ad_select(self, ad_select: BondAdSelect) -> Self { self.append_info_data(InfoBond::AdSelect(ad_select)) } diff --git a/src/link/bridge_port.rs b/src/link/bridge_port.rs index 6022535..79c8803 100644 --- a/src/link/bridge_port.rs +++ b/src/link/bridge_port.rs @@ -148,7 +148,7 @@ impl LinkMessageBuilder { /// `ip link set name NAME type bridge_slave \ /// neigh_vlan_suppress { on | off }`. pub fn neigh_vlan_suppress(self, v: bool) -> Self { - self.append_info_data(InfoBridgePort::NeighVlanSupress(v)) + self.append_info_data(InfoBridgePort::NeighVlanSuppress(v)) } /// This is equivalent to