The function link_acquire_conf() may make the link state 'configuring'
when DHCP6 PD is enabled. Previously link_acquire_conf() was called
before link_enter_join_netdev(), and thus the assertion in the function
might be triggered.
Fixes #17329.
return 0;
link_set_state(link, LINK_STATE_CONFIGURING);
+
+ r = link_acquire_conf(link);
+ if (r < 0)
+ return r;
+
return link_set_static_configs(link);
}
if (r < 0)
log_link_warning_errno(link, r, "Cannot set IPv6 MTU for interface, ignoring: %m");
- if (link_has_carrier(link) || link->network->configure_without_carrier) {
- r = link_acquire_conf(link);
- if (r < 0)
- return r;
- }
-
return link_enter_join_netdev(link);
}