ip6: fix address cache and route cache synchronization

There is are global caches of IPv6 addresses and routes. Only
managed devices are synchronized later. We *may* move
to per-device caches in the future but for now we should
keep the caches up to date.
This commit is contained in:
Pavel Šimerda 2012-05-17 16:40:03 +02:00 committed by Dan Williams
parent 175b7cbb67
commit 0a85eefd8c

View file

@ -643,11 +643,6 @@ process_address_change (NMIP6Manager *manager, struct nl_msg *msg)
}
device = nm_ip6_manager_get_device (manager, rtnl_addr_get_ifindex (rtnladdr));
if (!device) {
nm_log_dbg (LOGD_IP6, "ignoring message for unknown device");
rtnl_addr_put (rtnladdr);
return NULL;
}
old_size = nl_cache_nitems (priv->addr_cache);
nl_cache_include (priv->addr_cache, (struct nl_object *)rtnladdr, NULL, NULL);
@ -684,11 +679,6 @@ process_route_change (NMIP6Manager *manager, struct nl_msg *msg)
}
device = nm_ip6_manager_get_device (manager, rtnl_route_get_oif (rtnlroute));
if (!device) {
nm_log_dbg (LOGD_IP6, "ignoring message for unknown device");
rtnl_route_put (rtnlroute);
return NULL;
}
old_size = nl_cache_nitems (priv->route_cache);
nl_cache_include (priv->route_cache, (struct nl_object *)rtnlroute, NULL, NULL);