From 109bcd423cd560545ec7940d73a50c5584aebb0c Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 6 Apr 2019 21:17:25 +0200 Subject: [PATCH] lldp: increase statsTLVsUnrecognizedTotal on unknown TLV This was done for organization TLVs, but not for other TLVs. Fix #323. --- src/daemon/protocols/lldp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/daemon/protocols/lldp.c b/src/daemon/protocols/lldp.c index aae338d8..54c2b4a8 100644 --- a/src/daemon/protocols/lldp.c +++ b/src/daemon/protocols/lldp.c @@ -1147,6 +1147,7 @@ lldp_decode(struct lldpd *cfg, char *frame, int s, default: log_warnx("lldp", "unknown tlv (%d) received on %s", tlv_type, hardware->h_ifname); + hardware->h_rx_unrecognized_cnt++; goto malformed; } if (pos > tlv + tlv_size) { -- 2.39.5