link_dirty(link);
}
-static void link_enter_unmanaged(Link *link) {
- assert(link);
-
- link_set_state(link, LINK_STATE_UNMANAGED);
-}
-
int link_stop_engines(Link *link, bool may_keep_dhcp) {
int r = 0, k;
(void) link_stop_engines(link, false);
}
-static void link_enter_configured(Link *link) {
- assert(link);
- assert(link->network);
-
- if (link->state != LINK_STATE_CONFIGURING)
- return;
-
- link_set_state(link, LINK_STATE_CONFIGURED);
-}
-
void link_check_ready(Link *link) {
Address *a;
if (!link->can_configured)
return (void) log_link_debug(link, "%s(): CAN device is not configured.", __func__);
- link_enter_configured(link);
+ link_set_state(link, LINK_STATE_CONFIGURED);
return;
}
}
}
- link_enter_configured(link);
+ link_set_state(link, LINK_STATE_CONFIGURED);
}
static int link_request_static_configs(Link *link) {
r = link_get_network(link, &network);
if (r == -ENOENT) {
- link_enter_unmanaged(link);
+ link_set_state(link, LINK_STATE_UNMANAGED);
return 0;
}
if (r < 0)
r = link_get_network(link, &network);
if (r == -ENOENT) {
- link_enter_unmanaged(link);
+ link_set_state(link, LINK_STATE_UNMANAGED);
return 0;
}
if (r < 0)