device: remove activated condition when the carrier was down
Call nm_device_update_dynamic_ip_setup every time the carrier was down or was seen down and is now up again, without checking if the state is NM_DEVICE_STATE_ACTIVATED. Change discussed in https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2173
This commit is contained in:
@@ -7755,9 +7755,7 @@ device_link_changed(gpointer user_data)
|
|||||||
* tagged for carrier ignore) ensure that when the carrier appears we
|
* tagged for carrier ignore) ensure that when the carrier appears we
|
||||||
* renew DHCP leases and such.
|
* renew DHCP leases and such.
|
||||||
*/
|
*/
|
||||||
if (priv->state == NM_DEVICE_STATE_ACTIVATED) {
|
nm_device_update_dynamic_ip_setup(self, "interface got carrier");
|
||||||
nm_device_update_dynamic_ip_setup(self, "interface got carrier");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (update_unmanaged_specs)
|
if (update_unmanaged_specs)
|
||||||
|
Reference in New Issue
Block a user