[ovs-dev] [PATCH v4 4/6] lldp: increase statsTLVsUnrecognizedTotal on unknown TLV

Fabrizio D'Angelo fdangelo at redhat.com
Fri Nov 13 00:54:53 UTC 2020


From: Vincent Bernat <vincent at bernat.ch>

Upstream commit:
	commit 109bcd423cd560545ec7940d73a50c5584aebb0c
	Author: Vincent Bernat <vincent at bernat.ch>
	Date: Sat, 6 Apr 2019 21:17:25 +0200

	This was done for organization TLVs, but not for other TLVs.

	Fix https://github.com/vincentbernat/lldpd/issues/323

Signed-off-by: Fabrizio D'Angelo <fdangelo at redhat.com>
Acked-by: Aaron Conole <aconole at redhat.com>
---
 lib/lldp/lldp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/lldp/lldp.c b/lib/lldp/lldp.c
index 5c9d34007..7a80c4aef 100644
--- a/lib/lldp/lldp.c
+++ b/lib/lldp/lldp.c
@@ -679,6 +679,7 @@ lldp_decode(struct lldpd *cfg OVS_UNUSED, char *frame, int s,
             VLOG_WARN("unknown tlv (%d) received on %s",
                       tlv_type,
                       hardware->h_ifname);
+            hardware->h_rx_unrecognized_cnt++;
             goto malformed;
         }
         if (pos > tlv + tlv_size) {
-- 
2.26.2



More information about the dev mailing list