Increasing etharp error stats on unsupported ethtype in ethernet_input()

This commit is contained in:
goldsimon 2008-06-17 19:46:30 +00:00
parent eba83ab740
commit e0aaa87b1f

View File

@ -1165,6 +1165,8 @@ ethernet_input(struct pbuf *p, struct netif *netif)
#endif /* PPPOE_SUPPORT */
default:
ETHARP_STATS_INC(etharp.proterr);
ETHARP_STATS_INC(etharp.drop);
pbuf_free(p);
p = NULL;
break;