mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-08 21:17:47 +03:00
sd-ndisc: ignore failure in sending solicitation
Even if a bonding master interface has carrier, the underlying slave interfaces may not. In such a case, sending solicitation fails with -ENOBUS. Here, let's unconditionally ignore errors, as anyway we will send a solicitation later. Fixes #24717.
This commit is contained in:
parent
f4a4493eb5
commit
852bf93826
@ -286,11 +286,10 @@ static int ndisc_timeout(sd_event_source *s, uint64_t usec, void *userdata) {
|
||||
goto fail;
|
||||
|
||||
r = icmp6_send_router_solicitation(nd->fd, &nd->mac_addr);
|
||||
if (r < 0) {
|
||||
log_ndisc_errno(nd, r, "Error sending Router Solicitation: %m");
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (r < 0)
|
||||
log_ndisc_errno(nd, r, "Failed to send Router Solicitation, next solicitation in %s, ignoring: %m",
|
||||
FORMAT_TIMESPAN(nd->retransmit_time, USEC_PER_SEC));
|
||||
else
|
||||
log_ndisc(nd, "Sent Router Solicitation, next solicitation in %s",
|
||||
FORMAT_TIMESPAN(nd->retransmit_time, USEC_PER_SEC));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user