pub struct Fingerprinter {
    pub if_index: u32,
    pub if_name: String,
    pub src_mac: String,
    pub dst_mac: String,
    pub src_ip: IpAddr,
    pub src_port: u16,
    pub probe_targets: Vec<ProbeTarget>,
    pub probe_types: Vec<ProbeType>,
    pub timeout: Duration,
    pub wait_time: Duration,
    pub send_rate: Duration,
    pub probe_results: Vec<ProbeResult>,
}
Expand description

Struct for fingerprint probe

Fields

if_index: u32

Index of network interface

if_name: String

Name of network interface

src_mac: String

Source MAC Address

dst_mac: String

Destination MAC Address (Gateway)

src_ip: IpAddr

Source IP Address

src_port: u16

Source port

probe_targets: Vec<ProbeTarget>

Probe Targets

probe_types: Vec<ProbeType>

Probe Types

timeout: Duration

Timeout setting

wait_time: Duration

Wait time after send task is finished

send_rate: Duration

Packet send rate

probe_results: Vec<ProbeResult>

Result of probes

Implementations

Create new fingerprinter with interfece IP

Create new fingerprinter with interfece IP and gateway IP

Set source port number

Add probe target (IP address and tcp/udp port)

Set probe targets

Add probe type

Set probe types

Set all probe types

Set probe timeout

Set wait-time after the sending task is completed

Set packet send rate

Get probe result

Run probe with the current settings

Run probe and return result

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. 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.