forked from Imagelibrary/lwip
Fix some "little" build problems, and a redundancy call to "lwip_stats.link.recv++;" in low_level_input() & ethernetif_input().
If LINK_STATS was defined, tcpip.c couldn't be build. Even if IP_FRAG or IP_REASSEMBLY were set, ip_frag.c functions are not build.
This commit is contained in:
@@ -110,11 +110,7 @@ ethernet_input(struct pbuf *p, struct netif *netif)
|
||||
|
||||
/* points to packet payload, which starts with an Ethernet header */
|
||||
ethhdr = p->payload;
|
||||
|
||||
#if LINK_STATS
|
||||
lwip_stats.link.recv++;
|
||||
#endif /* LINK_STATS */
|
||||
|
||||
|
||||
switch (htons(ethhdr->type)) {
|
||||
/* IP packet? */
|
||||
case ETHTYPE_IP:
|
||||
|
||||
Reference in New Issue
Block a user