diff options
-rw-r--r-- | lib/lldp/lldpd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/lldp/lldpd.c b/lib/lldp/lldpd.c index 71f7e44b6..6ed85c6a1 100644 --- a/lib/lldp/lldpd.c +++ b/lib/lldp/lldpd.c @@ -242,6 +242,7 @@ lldpd_decode(struct lldpd *cfg, char *frame, int s, if (s < sizeof(struct eth_header) + 4) { /* Too short, just discard it */ + hw->h_rx_discarded_cnt++; return; } @@ -282,6 +283,7 @@ lldpd_decode(struct lldpd *cfg, char *frame, int s, VLOG_DBG("function for %s protocol did not " "decode this frame", cfg->g_protocols[i].name); + hw->h_rx_discarded_cnt++; return; } chassis->c_protocol = port->p_protocol = cfg->g_protocols[i].mode; |