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)
committerMichael Biebl <biebl@debian.org>
Tue, 19 Nov 2019 08:17:12 +0000 (08:17 +0000)
commit93fd5e8b62d907ecc2ffd829b8470f4a8b08e25e
tree5459de32b23df96e4afc1691b3847764375f6e9c
parent5847f8a1ab744f8801bb32c5deed40410fd7ac4a
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.

(cherry picked from commit ef90b6a4fb9509f61b9b917bbe4db7343afe1853)
(cherry picked from commit d4cd0e9d3242f85141d835dd5a78d880b47a0817)

Gbp-Pq: Name sd-radv-if-lifetime-SD_RADV_DEFAULT_MAX_TIMEOUT_USEC-adju.patch
src/libsystemd-network/sd-radv.c