]> git.ipfire.org Git - thirdparty/lldpd.git/commit
daemon: use monotonic clock for age
authorVincent Bernat <vincent@bernat.ch>
Thu, 18 May 2023 13:25:35 +0000 (15:25 +0200)
committerVincent Bernat <vincent@bernat.ch>
Thu, 18 May 2023 14:05:33 +0000 (16:05 +0200)
commitdf28002f84052fdd8426b4340d3459fefb5720ab
treeeb83bd4c81f029ad6d9e82cc52e5e3dda6a82c62
parent14ce09980a718e054301f9de08d8bc1ffc5656f0
daemon: use monotonic clock for age

Fix #572.

However, this break two things:

 - existing client comparing the age to the non-monotonic clock
 - SNMP agent which should report time since start time which is not
   monotonic either
14 files changed:
NEWS
configure.ac
src/Makefile.am
src/client/display.c
src/compat/clock_gettime.c [new file with mode: 0644]
src/compat/compat.h
src/daemon/event.c
src/daemon/lldpd.c
src/daemon/lldpd.h
src/daemon/protocols/lldp.c
src/lib/lldpctl.h
src/lldpd-structs.c
src/now.c [new file with mode: 0644]
src/now.h [new file with mode: 0644]