Skip to main content

send_arp_request

Function send_arp_request 

Source
pub fn send_arp_request(
    tx: &mut Box<dyn DataLinkSender>,
    interface: &NetworkInterface,
    source_ip: Ipv4Addr,
    target_ip: Ipv4Addr,
    options: Arc<ScanOptions>,
)
Expand description

Send a single ARP request - using a datalink-layer sender, a given network interface and a target IPv4 address. The ARP request will be broadcasted to the whole local network with the first valid IPv4 address on the interface. Performs the public send_arp_request operation.