]> git.ipfire.org Git - thirdparty/lldpd.git/commit
handle lldpStatsRemTablesLastChangeTime correctly when items are removed 272/head
authorThomas Eliasson <thomas.eliasson@westermo.se>
Thu, 8 Mar 2018 14:10:39 +0000 (15:10 +0100)
committerJonas Johansson <jonas.johansson@westermo.se>
Mon, 12 Mar 2018 09:53:09 +0000 (10:53 +0100)
commitc79467f68440122837d1648d0ad52f29ff48cfcc
treed97b9b3c6460049e0c474e8d2c8818c62e20b4e1
parent878441b274a73f6c67aeca1761bdf29a2a526c2f
handle lldpStatsRemTablesLastChangeTime correctly when items are removed

When a port is removed, the time has to be updated. The last removal time is
registered per local port, and this timestamp will be used as
lldpStatsRemTablesLastChangeTime if it is the latest timestamp.
Also, the lldpStatsRemTablesDeletes is  always increased when an entry in the
table is deleted.

Signed-off-by: Jonas Johansson <jonas.johansson@westermo.se>
src/daemon/agent.c
src/lldpd-structs.c
src/lldpd-structs.h