/* Drops @monitor's current list of available networks and replaces it with @networks.  */
void g_network_monitor_base_set_networks(GNetworkMonitorBase *monitor, GInetAddressMask **networks, gint length)
/* Drops @monitor's current list of available networks and replaces it with @networks.  */
void g_network_monitor_base_set_networks(GNetworkMonitorBase *monitor, GInetAddressMask **networks, gint length)
{
  int i;
  g_ptr_array_set_size (monitor->priv->networks, 0);
  monitor->priv->have_ipv4_default_route = FALSE;
  monitor->priv->have_ipv6_default_route = FALSE;
  for (i = 0; i < length; i++)
    g_network_monitor_base_add_network (monitor, networks[i]);
}