minor fix in ethernetif

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1469 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
mbbill@gmail.com 2011-06-08 16:38:56 +00:00
parent 6a34056233
commit a967ec707f
1 changed files with 6 additions and 1 deletions

View File

@ -249,7 +249,12 @@ void eth_rx_thread_entry(void* parameter)
if (p != RT_NULL) if (p != RT_NULL)
{ {
/* notify to upper layer */ /* notify to upper layer */
tcpip_input(p, device->netif); if( device->netif->input(p, device->netif) != ERR_OK )
{
LWIP_DEBUGF(NETIF_DEBUG, ("ethernetif_input: Input error\n"));
pbuf_free(p);
p = NULL;
}
} }
else break; else break;
} }