From 01c344bdd46ce2582a0a88e4ac680785c89632bc Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sun, 12 Jul 2020 13:26:53 +0900 Subject: [PATCH] network: ndisc: do not ignore remaining addresses Follow-up for c24c83dc67a63c88b0a537f4fa7f605b1fcbac39. --- src/network/networkd-ndisc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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++; } -- 2.47.3