From: Yu Watanabe Date: Sun, 12 Jul 2020 04:26:53 +0000 (+0900) Subject: network: ndisc: do not ignore remaining addresses X-Git-Tag: v246-rc2~67^2~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=01c344bdd46ce2582a0a88e4ac680785c89632bc;p=thirdparty%2Fsystemd.git network: ndisc: do not ignore remaining addresses Follow-up for c24c83dc67a63c88b0a537f4fa7f605b1fcbac39. --- diff --git a/src/network/networkd-ndisc.c b/src/network/networkd-ndisc.c index 1237524c168..6534effe27a 100644 --- a/src/network/networkd-ndisc.c +++ b/src/network/networkd-ndisc.c @@ -404,7 +404,7 @@ static int ndisc_router_process_autonomous_prefix(Link *link, sd_ndisc_router *r } else if (lifetime_valid > 0) a->cinfo.ifa_valid = lifetime_valid; else - return 0; /* see RFC4862 section 5.5.3.d */ + continue; /* see RFC4862 section 5.5.3.d */ if (a->cinfo.ifa_valid == 0) continue; @@ -415,7 +415,6 @@ static int ndisc_router_process_autonomous_prefix(Link *link, sd_ndisc_router *r link_enter_failed(link); return r; } - if (r > 0) link->ndisc_messages++; }