]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
agent: do not increase statsAgeoutsTotal when receiving a shutdown frame
authorVincent Bernat <vincent@bernat.ch>
Tue, 9 Apr 2019 05:07:14 +0000 (07:07 +0200)
committerVincent Bernat <vincent@bernat.ch>
Tue, 9 Apr 2019 05:09:47 +0000 (07:09 +0200)
Fix #325

NEWS
src/lldpd-structs.c

diff --git a/NEWS b/NEWS
index 4ce189e1a1dbc9c68207adb617dbb5bac7dcc555..bf8f0aa6a0671b00cea6805741a639dd656bf6f4 100644 (file)
--- 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:
index 634ceb3927b1358b1aa5762d98c5d73e3098509f..95cef9f11a1169f6310e7fc1f9cba7fdfd9beb11 100644 (file)
@@ -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) {