From: Vincent Bernat Date: Tue, 9 Apr 2019 05:07:14 +0000 (+0200) Subject: agent: do not increase statsAgeoutsTotal when receiving a shutdown frame X-Git-Tag: 1.0.4~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=26b82f3f7c35e07416a5e288620eb88f71c8eaf8;p=thirdparty%2Flldpd.git agent: do not increase statsAgeoutsTotal when receiving a shutdown frame Fix #325 --- diff --git a/NEWS b/NEWS index 4ce189e1..bf8f0aa6 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,9 @@ lldpd (1.0.4) * Changes: + Add "configure system max-neighbors XX" command to modify maximum of neighbors accepted per port. + * Fix: + + Better compliance for statsTLVsUnrecognizedTotal and + statsAgeoutsTotal counters. lldpd (1.0.3) * Fix: diff --git a/src/lldpd-structs.c b/src/lldpd-structs.c index 634ceb39..95cef9f1 100644 --- a/src/lldpd-structs.c +++ b/src/lldpd-structs.c @@ -175,7 +175,7 @@ lldpd_remote_cleanup(struct lldpd_hardware *hardware, del = all; if (!all && expire && (now >= port->p_lastupdate + port->p_ttl)) { - hardware->h_ageout_cnt++; + if (port->p_ttl > 0) hardware->h_ageout_cnt++; del = 1; } if (del) {