Struct caracat::easy::Config

source ·
pub struct Config {
Show 17 fields pub allowed_prefixes_file: Option<PathBuf>, pub blocked_prefixes_file: Option<PathBuf>, pub batch_size: u64, pub caracat_id: u16, pub dry_run: bool, pub extra_string: Option<String>, pub min_ttl: Option<u8>, pub max_ttl: Option<u8>, pub integrity_check: bool, pub interface: String, pub max_probes: Option<u64>, pub output_file_csv: Option<PathBuf>, pub output_file_pcap: Option<PathBuf>, pub packets: u64, pub probing_rate: u64, pub rate_limiting_method: RateLimitingMethod, pub receiver_wait_time: Duration,
}
Expand description

Probing configuration.

Fields§

§allowed_prefixes_file: Option<PathBuf>

Send probes only to the prefixes specified in the file (allow list).

§blocked_prefixes_file: Option<PathBuf>

Do not send probes to prefixes specified in file (block list).

§batch_size: u64

Number of probes to send before calling the rate limiter.

§caracat_id: u16

Identifier encoded in the probes (random by default).

§dry_run: bool

Whether to actually send the probes on the network or not.

§extra_string: Option<String>

Extra column in the CSV output.

§min_ttl: Option<u8>

Do not send probes with ttl < min_ttl.

§max_ttl: Option<u8>

Do not send probes with ttl > max_ttl.

§integrity_check: bool

Check that replies match valid probes.

§interface: String

Interface from which to send the packets.

§max_probes: Option<u64>

Maximum number of probes to send (unlimited by default).

§output_file_csv: Option<PathBuf>

File to which the captured replies will be written.

§output_file_pcap: Option<PathBuf>

File to which the captured replies will be written.

§packets: u64

Number of packets to send per probe.

§probing_rate: u64

Probing rate in packets per second.

§rate_limiting_method: RateLimitingMethod

Method to use to limit the packets rate.

§receiver_wait_time: Duration

Time in seconds to wait after sending the probes to stop the receiver.

Trait Implementations§

source§

impl Default for Config

source§

fn default() -> Self

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

impl Display for Config

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V