]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/libsystemd-network/sd-radv.c
sd-radv: if lifetime < SD_RADV_DEFAULT_MAX_TIMEOUT_USEC, adjust timeout (#13491)
authorGeorg Müller <georgmueller@gmx.net>
Fri, 20 Sep 2019 08:23:45 +0000 (10:23 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 20 Sep 2019 13:52:29 +0000 (13:52 +0000)
commitef90b6a4fb9509f61b9b917bbe4db7343afe1853
treedac25af1a747a91ad6de7b7ec6300958d32e2d46
parent299d578f7f5bd1ec9f5506388821ef4bd71866e8
sd-radv: if lifetime < SD_RADV_DEFAULT_MAX_TIMEOUT_USEC, adjust timeout (#13491)

The RFC states that lifetime (AdvDefaultLifetime) must be at least
MaxRtrAdvInterval (which more or less corresponds to SD_RADV_DEFAULT_MAX_TIMEOUT_USEC
in systemd).

To fulfill this limit, virtually lower MaxRtrAdvInterval and MinRtrAdvInterval
accordingly.

Also check that min is not lower than 3s and max is not lower than 4s.
src/libsystemd-network/sd-radv.c