diff options
author | Vincent Bernat <vincent@bernat.ch> | 2020-11-12 19:54:53 -0500 |
---|---|---|
committer | Ilya Maximets <i.maximets@ovn.org> | 2020-11-16 17:37:55 +0100 |
commit | 6b2bae3615798b939387ccf4e91af14f081f8c75 (patch) | |
tree | fa7288038b4a1c302c187f437c60364b90285e8a | |
parent | 751b05b81c7f056c58c78ffb183e8746b8214914 (diff) | |
download | openvswitch-6b2bae3615798b939387ccf4e91af14f081f8c75.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>
-rw-r--r-- | lib/lldp/lldp.c | 1 |
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) { |