pub struct RawSocketInfo {
pub pid: u32,
pub comm: String,
pub socket_type: String,
pub protocol: u16,
pub is_promiscuous: bool,
pub is_suspicious: bool,
}Expand description
Information about a raw socket held by a process.
Fields§
§pid: u32Process ID.
comm: StringProcess command name (task_struct.comm, max 16 chars).
socket_type: StringSocket type: "AF_PACKET" or "SOCK_RAW".
protocol: u16Protocol number (e.g. 0x0300 = ETH_P_ALL, 255 = IPPROTO_RAW).
is_promiscuous: boolWhether the interface has IFF_PROMISC set.
is_suspicious: boolWhether this raw socket is considered suspicious.
Trait Implementations§
Source§impl Clone for RawSocketInfo
impl Clone for RawSocketInfo
Source§fn clone(&self) -> RawSocketInfo
fn clone(&self) -> RawSocketInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RawSocketInfo
impl Debug for RawSocketInfo
Auto Trait Implementations§
impl Freeze for RawSocketInfo
impl RefUnwindSafe for RawSocketInfo
impl Send for RawSocketInfo
impl Sync for RawSocketInfo
impl Unpin for RawSocketInfo
impl UnsafeUnpin for RawSocketInfo
impl UnwindSafe for RawSocketInfo
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