pub struct ScanOptions {Show 20 fields
pub interface_name: Option<String>,
pub interface_index: Option<u32>,
pub network_range: Option<Vec<IpNetwork>>,
pub timeout_ms: u64,
pub resolve_hostname: bool,
pub source_ipv4: Option<Ipv4Addr>,
pub source_mac: Option<MacAddr>,
pub destination_mac: Option<MacAddr>,
pub vlan_id: Option<u16>,
pub retry_count: usize,
pub scan_timing: ScanTiming,
pub randomize_targets: bool,
pub output: OutputFormat,
pub oui_file: String,
pub hw_type: Option<ArpHardwareType>,
pub hw_addr: Option<u8>,
pub proto_type: Option<EtherType>,
pub proto_addr: Option<u8>,
pub arp_operation: Option<ArpOperation>,
pub packet_help: bool,
}Expand description
Immutable options used throughout one scan invocation.
Fields§
§interface_name: Option<String>Interface name selected by the caller.
interface_index: Option<u32>Interface index selected by the caller.
network_range: Option<Vec<IpNetwork>>Explicit IPv4 ranges to scan.
timeout_ms: u64Minimum response collection time, in milliseconds.
resolve_hostname: boolWhether reverse-DNS lookup is enabled.
source_ipv4: Option<Ipv4Addr>Optional source IPv4 address for crafted ARP requests.
source_mac: Option<MacAddr>Optional source hardware address for crafted Ethernet frames.
destination_mac: Option<MacAddr>Optional destination hardware address for crafted frames.
vlan_id: Option<u16>Optional 802.1Q VLAN identifier.
retry_count: usizeNumber of request passes over the target set.
scan_timing: ScanTimingRequest pacing mode.
randomize_targets: boolWhether target addresses should be randomized.
output: OutputFormatSelected output representation.
oui_file: StringPath to the optional IEEE OUI database.
hw_type: Option<ArpHardwareType>Optional ARP hardware type override.
hw_addr: Option<u8>Optional ARP hardware-address length override.
proto_type: Option<EtherType>Optional ARP protocol type override.
proto_addr: Option<u8>Optional ARP protocol-address length override.
arp_operation: Option<ArpOperation>Optional ARP operation override.
packet_help: boolWhether the packet-layout help should be printed.
Implementations§
Source§impl ScanOptions
impl ScanOptions
Sourcepub fn is_plain_output(&self) -> bool
pub fn is_plain_output(&self) -> bool
Return true when the selected output is the terminal table.
Sourcepub fn request_protocol_print(&self) -> bool
pub fn request_protocol_print(&self) -> bool
Return true when the packet-layout help path was requested.