mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-06-07 07:38:21 +02:00
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:
parent
7873b1761d
commit
785c263c18
1 changed files with 1 additions and 1 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue