]> git.puffer.fish Git - matthieu/frr.git/commit
vrrpd: allow centisecond precision for vrrpv2
authorQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 12 Mar 2019 17:31:39 +0000 (17:31 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 17 May 2019 00:27:08 +0000 (00:27 +0000)
commit8b28e459a17c661972362723ada9bf15e3957601
treeaf4f00372217ab0877c105d35c7362b12a41c8bd
parent23804b4f048caeef3e7a10d9f957eced5908321a
vrrpd: allow centisecond precision for vrrpv2

The RFC is not clear about how precise the skew time calculation should
be in VRRPv2. The advertisement interval is given in seconds, and the
field in the advertisement packet only supports non-fractional seconds,
so I was following this for calculating skew time as well. However the
skew time formula in vrrpv2 always yields a fractional amount of seconds
in the range (0-1), which right now means we always truncate to 0
seconds. I doubt this is what the RFC wanted so I'm allowing centisecond
precision for skew time.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
vrrpd/vrrp.c