]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-lldp: take triple timestamp when reading LLDP packets
authorLennart Poettering <lennart@poettering.net>
Mon, 30 May 2016 20:11:47 +0000 (22:11 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 6 Jun 2016 17:59:07 +0000 (19:59 +0200)
commit16fed825d60ca1efa57d0b9231842cda9aae7a68
treef6ced70b32a666143b3852f2afafba90edcfa10a
parente475d10c1be86f3c060cee86ddd6e1617608bdd8
sd-lldp: take triple timestamp when reading LLDP packets

It's a good idea to store away the recption time of LLDP packets in the
neighbor object, simply because the LLDP data only has a validity of a certain
amount of time.

Hence, let's record the timestamp when we receive the datagram and expose an
API for it. Also, automatically expire LLDP neighbors based on this new
timestamp.
src/libsystemd-network/lldp-neighbor.c
src/libsystemd-network/lldp-neighbor.h
src/libsystemd-network/sd-lldp.c
src/systemd/sd-lldp.h