pub struct SockMap<'a> { /* private fields */ }
Expand description
SockMap structure for storing file descriptors of TCP sockets by userspace program.
A sockmap is a BPF map type that holds references to sock structs. BPF
programs can use the sockmap to redirect skb
s between sockets using
related BPF helpers.
The counterpart which is used by BPF program is:
redbpf_probes::maps::SockMap
.
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SockMap<'a>
impl<'a> RefUnwindSafe for SockMap<'a>
impl<'a> Send for SockMap<'a>
impl<'a> Sync for SockMap<'a>
impl<'a> Unpin for SockMap<'a>
impl<'a> UnwindSafe for SockMap<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more