Skip to main content

find_source_ip

Function find_source_ip 

Source
pub fn find_source_ip(
    network_interface: &NetworkInterface,
    forced_source_ipv4: Option<Ipv4Addr>,
) -> Ipv4Addr
Expand description

Find the most adequate IPv4 address on a given network interface for sending ARP requests. If the ‘forced_source_ipv4’ parameter is set, it will take the priority over the network interface address. Performs the public find_source_ip operation.