diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c index f5da671380..f73ff3207a 100644 --- a/src/platform/nm-linux-platform.c +++ b/src/platform/nm-linux-platform.c @@ -3979,6 +3979,7 @@ setup (NMPlatform *platform) int channel_flags; gboolean status; int nle; + struct nl_object *object; /* Initialize netlink socket for requests */ priv->nlh = setup_socket (FALSE, platform); @@ -4020,6 +4021,9 @@ setup (NMPlatform *platform) rtnl_route_alloc_cache (priv->nlh, AF_UNSPEC, 0, &priv->route_cache); g_assert (priv->link_cache && priv->address_cache && priv->route_cache); + for (object = nl_cache_get_first (priv->address_cache); object; object = nl_cache_get_next (object)) + _rtnl_addr_hack_lifetimes_rel_to_abs ((struct rtnl_addr *) object); + /* Set up udev monitoring */ priv->udev_client = g_udev_client_new (udev_subsys); g_signal_connect (priv->udev_client, "uevent", G_CALLBACK (handle_udev_event), platform);