From d43879d99177c33c5d33827d8a3c7572841dd9df Mon Sep 17 00:00:00 2001 From: Andre Fredette Date: Wed, 25 Jan 2023 15:12:21 -0500 Subject: [PATCH] Updates after rebase due to changes in define_link_wrapper Signed-off-by: Andre Fredette --- aya/src/programs/tc.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/aya/src/programs/tc.rs b/aya/src/programs/tc.rs index 105911f5..e803dc68 100644 --- a/aya/src/programs/tc.rs +++ b/aya/src/programs/tc.rs @@ -267,22 +267,22 @@ impl SchedClassifierLink { handle: u32, ) -> Result { let if_index = ifindex_from_ifname(if_name)?; - Ok(SchedClassifierLink(TcLink { + Ok(SchedClassifierLink(Some(TcLink { if_index: if_index as i32, attach_type, priority, handle, - })) + }))) } /// Returns the allocated priority. If none was provided at attach time, this was allocated for you. pub fn priority(&self) -> u16 { - self.0.priority + self.inner().priority } /// Returns the assigned handle. If none was provided at attach time, this was allocated for you. pub fn handle(&self) -> u32 { - self.0.handle + self.inner().handle } }