From: Vincent Bernat <vinc...@bernat.ch>

Upstream commit:
        commit 109bcd423cd560545ec7940d73a50c5584aebb0c
        Author: Vincent Bernat <vinc...@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 <fdang...@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 172bccdc71..3314f18189 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

_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to