mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-03-15 13:20:57 +00:00
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:
parent
12e35c4c12
commit
7f48289fcd
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user