Struct windivert_sys::address::WINDIVERT_ADDRESS[][src]

#[repr(C)]
pub struct WINDIVERT_ADDRESS { pub timestamp: i64, pub union_field: WINDIVERT_ADDRESS_UNION_FIELD, // some fields omitted }
Expand description

Base data type returned by recv and required by send

Most address fields are ignored by WinDivertSend(). The exceptions are Outbound (for WinDivertLayer::Network layer only), Impostor, IPChecksum, TCPChecksum, UDPChecksum, Network.interface_id and Network.subinterface_id.

Fields

timestamp: i64

Timestamp indicating when the event occurred.

union_field: WINDIVERT_ADDRESS_UNION_FIELD

Union of the different data types associated with the possible layer values.

Implementations

Getter for the handle layer

Setter for the handle layer

Getter for the handle event

Setter for the handle event

Set to true if the packet was sniffed (not blocked).

Sniffed flag setter.

Set to true for outbound packet events.

Outbound flag setter.

Set to true for loopback packets.

Loopback flag setter.

Set to true for “impostor” packets.

Impostor flag setter.

Set to true for IPv6 packets.

IPv6 flag setter.

Set to true if the IPv4 checksum is valid.

IPv4 checksum flag setter.

Set to true if the TCP checksum is valid.

TCP checksum flag setter.

Set to true if the UDP checksum is valid.

UDP checksum flag setter.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.