From a967ec707faf085f828701c78bcea3d8b49d153b Mon Sep 17 00:00:00 2001 From: "mbbill@gmail.com" Date: Wed, 8 Jun 2011 16:38:56 +0000 Subject: [PATCH] minor fix in ethernetif git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1469 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- components/net/lwip-1.4.0/src/netif/ethernetif.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/net/lwip-1.4.0/src/netif/ethernetif.c b/components/net/lwip-1.4.0/src/netif/ethernetif.c index e4051ee351..0a3774ce3c 100644 --- a/components/net/lwip-1.4.0/src/netif/ethernetif.c +++ b/components/net/lwip-1.4.0/src/netif/ethernetif.c @@ -249,7 +249,12 @@ void eth_rx_thread_entry(void* parameter) if (p != RT_NULL) { /* 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; }