Struct windivert_sys::address::WINDIVERT_DATA_SOCKET
source · #[repr(C)]pub struct WINDIVERT_DATA_SOCKET {
pub endpoint_id: u64,
pub parent_endpoint_id: u64,
pub process_id: u32,
pub local_addr: [u32; 4],
pub remote_addr: [u32; 4],
pub local_port: u16,
pub remote_port: u16,
pub protocol: u8,
}
Expand description
Represents the associated data recieved using WinDivertLayer::Socket
Fields§
§endpoint_id: u64
The endpoint ID of the socket.
parent_endpoint_id: u64
The parent endpoint ID of the socket.
process_id: u32
The id of the process associated with the socket.
local_addr: [u32; 4]
The local address associated with the socket.
For IPv4, this field will contain IPv4-mapped IPv6 addresses, e.g. the IPv4 address X.Y.Z.W will be represented by ::ffff:X.Y.Z.W.
remote_addr: [u32; 4]
The remote address associated with the socket.
For IPv4, this field will contain IPv4-mapped IPv6 addresses, e.g. the IPv4 address X.Y.Z.W will be represented by ::ffff:X.Y.Z.W.
local_port: u16
The local port associated with the socket.
remote_port: u16
The remote port associated with the socket.
protocol: u8
The socket protocol.
Trait Implementations§
source§impl Clone for WINDIVERT_DATA_SOCKET
impl Clone for WINDIVERT_DATA_SOCKET
source§fn clone(&self) -> WINDIVERT_DATA_SOCKET
fn clone(&self) -> WINDIVERT_DATA_SOCKET
Returns a copy of the value. Read more
1.0.0 · 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 WINDIVERT_DATA_SOCKET
impl Debug for WINDIVERT_DATA_SOCKET
source§impl Default for WINDIVERT_DATA_SOCKET
impl Default for WINDIVERT_DATA_SOCKET
source§fn default() -> WINDIVERT_DATA_SOCKET
fn default() -> WINDIVERT_DATA_SOCKET
Returns the “default value” for a type. Read more
impl Copy for WINDIVERT_DATA_SOCKET
Auto Trait Implementations§
impl RefUnwindSafe for WINDIVERT_DATA_SOCKET
impl Send for WINDIVERT_DATA_SOCKET
impl Sync for WINDIVERT_DATA_SOCKET
impl Unpin for WINDIVERT_DATA_SOCKET
impl UnwindSafe for WINDIVERT_DATA_SOCKET
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