]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-radv.c
sd-radv: make prefix/route prefix lifetime can be specified with independently with...
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 24 Oct 2021 17:44:29 +0000 (02:44 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 27 Oct 2021 14:58:28 +0000 (23:58 +0900)
commit95e104e04957cd984600ecdaa4216950303031dc
tree4f60a694a7626d5ed1907cf17631ee9f3b432659
parenteef5ebec9775d15b07f5660b501cb8fc7f3446c8
sd-radv: make prefix/route prefix lifetime can be specified with independently with valid_until

Previously, valid_until (or preferred_until for preferred lifetime) was
calculated from lifetime. So, when an upstream interface acquire a
dynamic prefix (e.g. through DHCPv6-PD) with long lifetime, then sd-radv
advertise the same lifetime. It may not be desired for some situations.
src/libsystemd-network/radv-internal.h
src/libsystemd-network/sd-radv.c
src/libsystemd-network/test-ndisc-ra.c
src/network/networkd-radv.c
src/systemd/sd-radv.h