提交 523eb643 创建 作者: Silas Boyd-Wickizer's avatar Silas Boyd-Wickizer

Change lwIP if_input to call ethernet_input.

上级 00749357
......@@ -166,20 +166,13 @@ if_input(struct netif *netif, void *buf, u16 len)
/* IP or ARP packet? */
case ETHTYPE_IP:
case ETHTYPE_ARP:
#if PPPOE_SUPPORT
/* PPPoE packet? */
case ETHTYPE_PPPOEDISC:
case ETHTYPE_PPPOE:
#endif /* PPPOE_SUPPORT */
/* full packet send to tcpip_thread to process */
if (netif->input(p, netif)!=ERR_OK)
{ LWIP_DEBUGF(NETIF_DEBUG, ("ethernetif_input: IP input error\n"));
pbuf_free(p);
p = NULL;
}
if (ethernet_input(p, netif) != ERR_OK) {
cprintf("if_input: ethernet_input failed\n");
pbuf_free(p);
}
break;
default:
cprintf("if_input: unknown type %u\n", htons(ethhdr->type));
pbuf_free(p);
p = NULL;
break;
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论