summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVincent Bernat <vincent@bernat.ch>2020-11-12 19:54:53 -0500
committerIlya Maximets <i.maximets@ovn.org>2020-11-16 17:47:11 +0100
commitb2c3c7824049a0044a9aa9805f085d8e5e4a0eae (patch)
tree6fd8703b414435a2cd4d111ad026ccbcec634d04 /lib
parentbb5a9937fa8e04e71052fb50e23894448d19678f (diff)
downloadopenvswitch-b2c3c7824049a0044a9aa9805f085d8e5e4a0eae.tar.gz
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/lldp/lldp.c1
1 files changed, 1 insertions, 0 deletions
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) {