You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.2 KiB
38 lines
1.2 KiB
From d9140c3fd0bcba05a9e33fc7b1e042b86e31ae37 Mon Sep 17 00:00:00 2001
|
|
From: Vincent Bernat <vincent@bernat.ch>
|
|
Date: Thu, 12 Nov 2020 19:54:53 -0500
|
|
Subject: [PATCH 4/5] lldp: increase statsTLVsUnrecognizedTotal on unknown TLV
|
|
|
|
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
|
|
|
|
Fixes: be53a5c447c3 ("auto-attach: Initial support for Auto-Attach standard")
|
|
Signed-off-by: Fabrizio D'Angelo <fdangelo@redhat.com>
|
|
Acked-by: Aaron Conole <aconole@redhat.com>
|
|
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
|
|
---
|
|
lib/lldp/lldp.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/lib/lldp/lldp.c b/lib/lldp/lldp.c
|
|
index 628d0f863..e5755307f 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.28.0
|
|
|