Struct windivert_sys::address::WINDIVERT_DATA_SOCKET [−][src]
#[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
Returns the “default value” for a type. Read more
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
Mutably borrows from an owned value. Read more