mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-22 23:20:44 +02:00
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.
This commit is contained in:
parent
72385f363c
commit
056470a4ba
1 changed files with 2 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue