Function fidl_fuchsia_net_dhcp_ext::apply_new_routers

source ยท
pub async fn apply_new_routers(
    device_id: NonZeroU64,
    route_set: &RouteSetV4Proxy,
    configured_routers: &mut HashSet<SpecifiedAddr<Ipv4Addr>>,
    new_routers: impl IntoIterator<Item = SpecifiedAddr<Ipv4Addr>>,
) -> Result<(), Error>
Expand description

Applies a new set of routers

Applies a new set of routers to a given fuchsia.net.stack.Stack and set of configured routers by deleting forwarding entries for newly-absent routers and adding forwarding entries for newly-present ones.