pub enum PT_SOCKTUPLE<'a> {
Unix {
source_ptr: u64,
dest_ptr: u64,
path: &'a Path,
},
V4 {
source: (Ipv4Addr, Port),
dest: (Ipv4Addr, Port),
},
V6 {
source: (Ipv6Addr, Port),
dest: (Ipv6Addr, Port),
},
Other(u8, &'a [u8]),
}
Expand description
Socket tuple: describing both endpoints of a connection
Variants§
Unix
Unix socket connection
Fields
V4
IPv4 connection
Fields
V6
IPv6 connection
Fields
Other(u8, &'a [u8])
Unknown/other socket family: PPM_AF_*
id and a raw byte buffer
Trait Implementations§
source§impl<'a> FromBytes<'a> for SockTuple<'a>
impl<'a> FromBytes<'a> for SockTuple<'a>
source§fn from_bytes(buf: &mut &'a [u8]) -> FromBytesResult<Self>
fn from_bytes(buf: &mut &'a [u8]) -> FromBytesResult<Self>
Read the binary representation of a field and return the parsed representation Read more
source§fn from_maybe_bytes(buf: Option<&mut &'a [u8]>) -> FromBytesResult<Self>
fn from_maybe_bytes(buf: Option<&mut &'a [u8]>) -> FromBytesResult<Self>
Read the binary representation of a field from a buffer that may or may not exist Read more
impl<'a> Eq for SockTuple<'a>
impl<'a> StructuralPartialEq for SockTuple<'a>
Auto Trait Implementations§
impl<'a> Freeze for SockTuple<'a>
impl<'a> RefUnwindSafe for SockTuple<'a>
impl<'a> Send for SockTuple<'a>
impl<'a> Sync for SockTuple<'a>
impl<'a> Unpin for SockTuple<'a>
impl<'a> UnwindSafe for SockTuple<'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