device: do the LL check when the device is disconnected

An IPv6 address might have been added externally and the device is yet to
traverse to a connected state.

On the other hand, the externally added devices still traverse through
DISCONNECTED state and we don't want to attempt the LL addition there. Let's
check if the link still exists instead.
This commit is contained in:
Lubomir Rintel 2015-12-11 13:24:07 +01:00
parent 7873b1761d
commit 785c263c18

View file

@ -8221,7 +8221,7 @@ queued_ip6_config_change (gpointer user_data)
g_object_ref (self);
update_ip6_config (self, FALSE);
if ( priv->state > NM_DEVICE_STATE_DISCONNECTED
if ( nm_platform_link_get (NM_PLATFORM_GET, priv->ifindex)
&& priv->state < NM_DEVICE_STATE_DEACTIVATING) {
/* Handle DAD falures */
for (iter = priv->dad6_failed_addrs; iter; iter = g_slist_next (iter)) {