diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-07-21 23:03:10 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-07-28 19:05:05 +0200 |
commit | 3336e946daab7417fc33170ca4d77581dd799748 (patch) | |
tree | 23f948c7e3a179c80d64248097cd8a6280285ae7 /src | |
parent | network: make link enter failed state if address_update() failed (diff) | |
download | systemd-3336e946daab7417fc33170ca4d77581dd799748.tar.xz systemd-3336e946daab7417fc33170ca4d77581dd799748.zip |
network: ndisc: do not set configured flags when addresses or routes are not assigned yet
Just for safety.
Diffstat (limited to 'src')
-rw-r--r-- | src/network/networkd-ndisc.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/network/networkd-ndisc.c b/src/network/networkd-ndisc.c index a91c099996..dcfe3e726c 100644 --- a/src/network/networkd-ndisc.c +++ b/src/network/networkd-ndisc.c @@ -819,10 +819,11 @@ static void ndisc_handler(sd_ndisc *nd, sd_ndisc_event event, sd_ndisc_router *r case SD_NDISC_EVENT_TIMEOUT: log_link_debug(link, "NDisc handler get timeout event"); - link->ndisc_addresses_configured = true; - link->ndisc_routes_configured = true; - link_check_ready(link); - + if (link->ndisc_addresses_messages == 0 && link->ndisc_routes_messages == 0) { + link->ndisc_addresses_configured = true; + link->ndisc_routes_configured = true; + link_check_ready(link); + } break; default: assert_not_reached("Unknown NDisc event"); |