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>
Fri, 15 Nov 2019 21:01:17 +0000 (21:01 +0000)
commitcdb3f366a4955cbbfb5315dbee73c34eff6ccc18
tree90530902665c7bd4af882b2af5f4cb9c0e6d4e78
parent215d4d1bfe7df7873b47dedba8ebb2d3a8e19026
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