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 7c64ad8c6..a537883e0 100644 --- a/lib/lldp/lldpd.c +++ b/lib/lldp/lldpd.c @@ -243,6 +243,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; } @@ -283,6 +284,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; |