diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2019-03-08 15:26:47 +0100 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2019-03-09 15:27:54 +0100 |
commit | 056470a4ba7e000618f6d73437e38a96e348b81b (patch) | |
tree | 9625d371e11764ec3d6c7e6d2586993d705938a3 /src | |
parent | 72385f363c2bbb7a9b26e7d50f0c61ffc50fdd0b (diff) | |
download | NetworkManager-056470a4ba7e000618f6d73437e38a96e348b81b.tar.gz |
device: reset the ipv6 DAD counter when the link comes up
We can detect false DAD failures if the link goes down. Don't try to
prevent them, but just reset the counter if the link goes down.
Diffstat (limited to 'src')
-rw-r--r-- | src/devices/nm-device.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index 90bc4bdc0d..e13ca4b8df 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -3884,6 +3884,8 @@ device_link_changed (NMDevice *self) if (!ip_config_merge_and_apply (self, AF_INET, TRUE)) _LOGW (LOGD_IP4, "failed applying IP4 config after link comes up again"); } + + priv->linklocal6_dad_counter = 0; if (priv->ip_state_6 == NM_DEVICE_IP_STATE_DONE) { if (!ip_config_merge_and_apply (self, AF_INET6, TRUE)) _LOGW (LOGD_IP6, "failed applying IP6 config after link comes up again"); |