diff options
-rw-r--r-- | src/network/networkd-ndisc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/network/networkd-ndisc.c b/src/network/networkd-ndisc.c index 5320592f7a..5097ab9d72 100644 --- a/src/network/networkd-ndisc.c +++ b/src/network/networkd-ndisc.c @@ -118,7 +118,9 @@ static void ndisc_router_process_default(Link *link, sd_ndisc_router *rt) { } r = sd_ndisc_router_get_mtu(rt, &mtu); - if (r < 0) { + if (r == -ENODATA) + mtu = 0; + else if (r < 0) { log_link_warning_errno(link, r, "Failed to get default router MTU from RA: %m"); return; } |