]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: radv: Send RA on newly-added dynamic prefix
authorMichael Marley <michael@michaelmarley.com>
Sun, 26 Jul 2020 03:23:48 +0000 (23:23 -0400)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 26 Jul 2020 20:28:33 +0000 (05:28 +0900)
commit97efde65d81b1501a3737f408f1234c6c25da61c
treef7cc967d1611381041ed89be17cdcd0d07b79896
parentc8f12abc7382f3302ec9fc5152f1a711c4515f6b
network: radv: Send RA on newly-added dynamic prefix

When a prefix is delegated to an interface that is already sending
RAs, send an RA immediately to inform clients of the new prefix.
This allows them to start using it immediately instead of waiting
up to nearly 10 minutes (depending on when the last timed RA was
sent).  This type of situation might occur if, for example, an
outage of the WAN connection caused the addresses and prefixes to
be lost and later regained after service was restored.  The
condition for the number of RAs sent being above 0 simultaneously
ensures that RADV is already running and that this code doesn't
send any RAs before the timed RAs have started when the interface
first comes up.
src/libsystemd-network/sd-radv.c