lldp: fix starting ttl timer for lldp neighbor
authorThomas Haller <thaller@redhat.com>
Fri, 11 Mar 2016 15:18:13 +0000 (16:18 +0100)
committerThomas Haller <thaller@redhat.com>
Mon, 14 Mar 2016 16:02:19 +0000 (17:02 +0100)
commit0513ea4e3fc42c2d495ae47d83815ce09d2274b2
tree914b4a38e8a2bdda8fac95bf132882f5982b963b
parentca9bc74bd0c80492af1f1b59f34094eddbea3c33
lldp: fix starting ttl timer for lldp neighbor

lldp_start_timer() was only called during sd_lldp_get_neighbors().
Ensure that the timer is (re-)started when a new neighbor appears.
Otherwise, the timer is not started when relying on the events alone.

Fixes: 34437b4f9c9c51b0a6f93788bdb9a105b8e46b66
src/libsystemd-network/sd-lldp.c