]> git.ipfire.org Git - thirdparty/lldpd.git/commit
event: use a separate event timer for each port
authorVincent Bernat <bernat@luffy.cx>
Mon, 31 Dec 2012 17:25:42 +0000 (18:25 +0100)
committerVincent Bernat <bernat@luffy.cx>
Mon, 31 Dec 2012 17:27:23 +0000 (18:27 +0100)
commit579bedd5494cdf7d8a232cdf992218055bb88eec
treed3a51073a7f7e87e52789c0ff7f47c8b5312f071
parent34e7d35735408b823b0e21419edf390ce6d6e5e2
event: use a separate event timer for each port

Each port will have its own live with its own timer. If a port just
appeared, it will have its own 30 seconds timer. We also notice
changes independently on each port, so the timer is reset on each
change on a given port.

Also, as a safeguard, update port-related information every 10
minutes. We can catch changes in addresses this way (otherwise,
detecting them via netlink is noisy).
src/daemon/event.c
src/daemon/frame.h
src/daemon/lldpd.c
src/daemon/lldpd.h
src/lldpd-structs.h