From 785c263c18fb48ec9eb14a17631af8dbc1147553 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Fri, 11 Dec 2015 13:24:07 +0100 Subject: [PATCH] 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. --- src/devices/nm-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index b993a063a5..beca18b4f7 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -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)) {