]> git.ipfire.org Git - thirdparty/lldpd.git/commit
lldpd: set a 30 seconds lower limit to the safeguard timer 379/head
authorJean-Pierre Tosoni <jp.tosoni@acksys.fr>
Wed, 22 Jan 2020 11:03:25 +0000 (12:03 +0100)
committerJean-Pierre Tosoni <jp.tosoni@acksys.fr>
Wed, 22 Jan 2020 11:11:00 +0000 (12:11 +0100)
commit5134d8882312b08d56add863d2e5875de3a94017
tree52c5d5b1dccc39f3294b6f613c5828dbb7db022c
parent6ef305d50c0722ba15647ab1f68a689efb57cb38
lldpd: set a 30 seconds lower limit to the safeguard timer

This timer is a safeguard to refresh information about all networks
interfaces at regular interval, in case there was something wrong with
the event-based refresh.

When using milliseconds-grained tx-interval, this could happen several
times per second, which is not the intended use of the safeguard.

To quote Vincent Bernat:
"Minimal value of 30 seconds even if we don't have event-based
refresh (so outside the if). Most people have the event-based
refresh, so lowering the pace for the others should be pretty
invisible."
src/daemon/event.c