diff mbox series

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

Message ID 20201026205745.56604-5-fdangelo@redhat.com
State Changes Requested
Headers show
Series Incorporate fixes from lldpd upstream | expand

Commit Message

Fabrizio D'Angelo Oct. 26, 2020, 8:57 p.m. UTC
From: Vincent Bernat <vincent@bernat.ch>

Upstream commit:
	commit 109bcd423cd560545ec7940d73a50c5584aebb0c
	Author: Vincent Bernat <vincent@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@redhat.com>
---
 lib/lldp/lldp.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/lib/lldp/lldp.c b/lib/lldp/lldp.c
index aaa8ec842a..5ec377975b 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) {