Increment ip.drop when dropping due to NULL netif

This commit increments the ip.drop statistic when an IP packet is
dropped due to no matching netif found and forwarding is disabled

This adds parity to the other places where mib2.ipinaddrerrors and
mib2.ipindiscards are incremented which also increment ip.drop
This commit is contained in:
Joel Cunningham 2016-11-29 15:22:55 -06:00
parent 12e35c4c12
commit 7f48289fcd

View File

@ -598,6 +598,7 @@ ip4_input(struct pbuf *p, struct netif *inp)
} else
#endif /* IP_FORWARD */
{
IP_STATS_INC(ip.drop);
MIB2_STATS_INC(mib2.ipinaddrerrors);
MIB2_STATS_INC(mib2.ipindiscards);
}