From 200ec322019646f3761299bc3c2d2ab6f81bbc2e Mon Sep 17 00:00:00 2001 From: Nils Andreas Svee Date: Sat, 21 Feb 2026 00:18:33 +0700 Subject: [PATCH] refactor(deps): Update neli imports and error types --- src/netlink.rs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/netlink.rs b/src/netlink.rs index d05053a..e8e2ce7 100644 --- a/src/netlink.rs +++ b/src/netlink.rs @@ -1,13 +1,14 @@ use bincode::error::DecodeError; use bincode::BorrowDecode; -use neli::consts::nl::{NlmF, NlmFFlags}; -use neli::consts::rtnl::{Arphrd, IffFlags, Ifla, RtAddrFamily, Rtm, Tca}; +use neli::consts::nl::NlmF; +use neli::consts::rtnl::{Arphrd, Iff, Ifla, RtAddrFamily, Rtm, Tca}; use neli::consts::socket::NlFamily; -use neli::err::{NlError, SerError}; +use neli::err::{RouterError, SerError}; use neli::nl::{NlPayload, Nlmsghdr}; -use neli::rtnl::{Ifinfomsg, Rtattr, Tcmsg}; -use neli::socket::NlSocketHandle; +use neli::router::synchronous::NlRouter; +use neli::rtnl::{Ifinfomsg, IfinfomsgBuilder, RtattrBuilder, Tcmsg, TcmsgBuilder}; use neli::types::{Buffer, RtBuffer}; +use neli::utils::Groups; use std::io; use std::str::Utf8Error; use thiserror::Error; @@ -21,10 +22,10 @@ pub enum NetlinkError { InterfaceNotFound(String), #[error("Netlink interface error")] - NlInterfaceError(#[from] NlError), + NlInterfaceError(#[from] RouterError), #[error("Something went wrong while finding qdisc")] - NlQdiscError(#[from] NlError), + NlQdiscError(#[from] RouterError), #[error("Couldn't find CAKE qdisc on interface `{0}`")] NoQdiscFound(String),