device: stop ac6 grace time when ip6ll is ready in shared mode

The IPv6 shared mode starts IPv6 autoconf to send router
advertisements. IPv6 autoconf schedules a 30-second timeout waiting
for a link-local address to appear. When the link-local address
appears, we need to cancel the timeout.

Fixes: 58287cbcc0 ('core: rework IP configuration in NetworkManager using layer 3 configuration')

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1030
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1266
This commit is contained in:
Beniamino Galvani
2022-06-20 09:38:58 +02:00
parent 3ee61f0913
commit a216739e09

View File

@@ -11513,8 +11513,8 @@ _dev_ipac6_start(NMDevice *self)
if (node_type == NM_NDISC_NODE_TYPE_ROUTER) if (node_type == NM_NDISC_NODE_TYPE_ROUTER)
_dev_ipac6_set_state(self, NM_DEVICE_IP_STATE_READY); _dev_ipac6_set_state(self, NM_DEVICE_IP_STATE_READY);
else
_dev_ipac6_grace_period_start(self, ra_timeout, TRUE); _dev_ipac6_grace_period_start(self, ra_timeout, TRUE);
nm_ndisc_start(priv->ipac6_data.ndisc); nm_ndisc_start(priv->ipac6_data.ndisc);
} }