Add missing inline macro to xdp methods

pull/328/head
tirex 2 years ago committed by Alessandro Decina
parent 623579a47f
commit caa66cabac

@ -11,10 +11,12 @@ impl XdpContext {
XdpContext { ctx }
}
#[inline]
pub fn data(&self) -> usize {
unsafe { (*self.ctx).data as usize }
}
#[inline]
pub fn data_end(&self) -> usize {
unsafe { (*self.ctx).data_end as usize }
}

Loading…
Cancel
Save