Function get_hitlist

Source
fn get_hitlist(
    hitlist_path: &String,
    configurations: &[Configuration],
    is_unicast: bool,
    is_shuffle: bool,
) -> (Vec<Address>, bool)
Expand description

Get the hitlist from a file.

§Arguments

  • ‘hitlist_path’ - path to the hitlist file

  • ‘configurations’ - list of configurations to check the source address type

  • ‘is_unicast’ - boolean whether the measurement is unicast or anycast

  • ‘is_shuffle’ - boolean whether the hitlist should be shuffled or not

§Returns

  • A tuple containing a vector of addresses and a boolean indicating whether the addresses are IPv6 or IPv4.

§Panics

  • If the hitlist file cannot be opened.

  • If the anycast source address type (v4 or v6) does not match the hitlist addresses.

  • If the hitlist addresses are of mixed types (v4 and v6).