network: ndisc: drop addresses and friends when RA with zero lifetime is received
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 3 Oct 2022 02:54:20 +0000 (11:54 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 3 Oct 2022 17:52:46 +0000 (02:52 +0900)
commitaf2aea8bb64b0dc42ecbe5549216eb567681a803
tree642e29825207ed394c71bb1129beec805c96b7c6
parent0cf1fe88885bd5ae1944c331ee1a5ec80b0ddfbc
network: ndisc: drop addresses and friends when RA with zero lifetime is received

Routers may send options with zero lifetime if previously announced
information is outdated. Hence, if we receive such messages, then we
need to drop relevant addresses or friends.

See e.g. https://www.rfc-editor.org/rfc/rfc4861#section-12.

Follow-up for 2ccada8dc4a3571468a335808fd6fe49b8c6c6dd.
src/network/networkd-address.c
src/network/networkd-ndisc.c
src/network/networkd-route.c