From 09cf889ff7845d66d51f49d05149fa134a61095a Mon Sep 17 00:00:00 2001 From: Gris Ge Date: Thu, 1 Jan 2026 18:22:40 +0800 Subject: [PATCH] Use netlink-packet-route 0.28.0 Signed-off-by: Gris Ge --- Cargo.toml | 2 +- src/link/test.rs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6c813a9..9bdeda4 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.27" } +netlink-packet-route = { version = "0.28" } 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/test.rs b/src/link/test.rs index d915063..2e988cb 100644 --- a/src/link/test.rs +++ b/src/link/test.rs @@ -7,7 +7,7 @@ use crate::{ new_connection, packet_route::link::{ InfoData, InfoKind, InfoMacVlan, InfoNetkit, InfoVrf, LinkAttribute, - LinkInfo, LinkMessage, MacVlanMode, NetkitMode, + LinkInfo, LinkMessage, MacVlanFlags, MacVlanMode, NetkitMode, }, Error, LinkHandle, LinkMacVlan, LinkNetkit, LinkVrf, LinkWireguard, }; @@ -58,7 +58,8 @@ fn create_get_delete_macvlan() { LinkInfo::Kind(InfoKind::MacVlan), LinkInfo::Data(InfoData::MacVlan(vec![ InfoMacVlan::Mode(MACVLAN_MODE), - InfoMacVlan::Flags(0), // defaulted by the kernel + InfoMacVlan::Flags(MacVlanFlags::empty()), /* defaulted by + * the kernel */ InfoMacVlan::MacAddrCount(0), // defaulted by the kernel InfoMacVlan::BcQueueLen(1000), // defaulted by the kernel InfoMacVlan::BcQueueLenUsed(1000) // defaulted by the kernel