]> git.ipfire.org Git - thirdparty/lldpd.git/blobdiff - src/lldpd-structs.c
lldp: attach remote TTL to port instead of chassis
[thirdparty/lldpd.git] / src / lldpd-structs.c
index d42ebfb585b84d9439edc2c0dbdf373ed7be953b..2e7efebb6f69025cb4ec28bea9197cfac03d962e 100644 (file)
@@ -174,7 +174,7 @@ lldpd_remote_cleanup(struct lldpd_hardware *hardware,
                port_next = TAILQ_NEXT(port, p_entries);
                del = all;
                if (!all && expire &&
-                   (now >= port->p_lastupdate + port->p_chassis->c_ttl)) {
+                   (now >= port->p_lastupdate + port->p_ttl)) {
                        hardware->h_ageout_cnt++;
                        hardware->h_delete_cnt++;
                        del = 1;