ra: align RA update interval with RFC4861 (FS#964)
authorHans Dedecker <dedeckeh@gmail.com>
Thu, 31 Aug 2017 15:03:02 +0000 (17:03 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Fri, 1 Sep 2017 13:48:04 +0000 (15:48 +0200)
commit51733a6d3bfe0fb9e8c53aea22231e5b8a1f64c3
tree7e4e3c68efd7457ff81198cec870183189965829
parent0463b0571af90fbab2bfc75d3338d6bf503dc0fb
ra: align RA update interval with RFC4861 (FS#964)

RFC4861 paragraph 6.2.1 states the minimum allowed time between sending
unsolicited multicast Router Advertisements is 3 seconds.
Align the odhcp6c implementation to this requirement as before Router
Advertisement updates were accepted each 30 seconds.
This lead to IPv6 connectivity issues when a network sends Router
Advertisements with an interval smaller than 30 seconds as reported
in FS#964.
While at it rework the RA update logic making it clear the -m option
is only related to RA updates.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/dhcpv6.c
src/odhcp6c.c
src/odhcp6c.h
src/ra.c
src/ra.h