fidl_fuchsia_net_interfaces_ext

Function is_globally_routable

Source
pub fn is_globally_routable<I: FieldInterests>(_: &Properties<I>) -> bool
Expand description

Returns true iff the supplied Properties (expected to be fully populated) appears to provide network connectivity, i.e. is not loopback, is online, and has a default route and a globally routable address for either IPv4 or IPv6. An IPv4 address is assumed to be globally routable if it’s not link-local. An IPv6 address is assumed to be globally routable if it has global scope.