diff options
| author | [email protected] <[email protected]> | 2011-06-08 16:38:56 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2011-06-08 16:38:56 +0000 |
| commit | a967ec707faf085f828701c78bcea3d8b49d153b (patch) | |
| tree | b49817e0996a70321695a112bcfb0d4d905e2a82 | |
| parent | 6a3405623306b539e063d85d07795e6881b57166 (diff) | |
minor fix in ethernetif
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1469 bbd45198-f89e-11dd-88c7-29a3b14d5316
| -rw-r--r-- | components/net/lwip-1.4.0/src/netif/ethernetif.c | 7 |
1 files changed, 6 insertions, 1 deletions
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; } |
