mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-20 14:03:39 +03:00
network: do not ignore errors on link_request_set_neighbors() and link_set_routing_policy()
This commit is contained in:
parent
f41c6dba15
commit
f3ef324dfa
@ -866,7 +866,9 @@ static int link_request_set_routes(Link *link) {
|
||||
|
||||
link_set_state(link, LINK_STATE_CONFIGURING);
|
||||
|
||||
(void) link_set_routing_policy_rule(link);
|
||||
r = link_set_routing_policy_rule(link);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
/* First add the routes that enable us to talk to gateways, then add in the others that need a gateway. */
|
||||
for (phase = 0; phase < _PHASE_MAX; phase++)
|
||||
@ -1079,7 +1081,9 @@ static int link_request_set_addresses(Link *link) {
|
||||
|
||||
link_set_state(link, LINK_STATE_CONFIGURING);
|
||||
|
||||
link_request_set_neighbors(link);
|
||||
r = link_request_set_neighbors(link);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
LIST_FOREACH(addresses, ad, link->network->static_addresses) {
|
||||
r = address_configure(ad, link, address_handler, false);
|
||||
@ -1216,7 +1220,7 @@ static int link_request_set_addresses(Link *link) {
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
log_link_debug(link, "Offering DHCPv4 leases");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user