Only in ecos_web_cvs/ecos/packages/io/eth/current: CVS diff -ru ecos_web_cvs/ecos/packages/io/eth/current/ChangeLog ecos/ecos/packages/io/eth/current/ChangeLog --- ecos_web_cvs/ecos/packages/io/eth/current/ChangeLog 2006-01-18 16:04:38.000000000 +0100 +++ ecos/ecos/packages/io/eth/current/ChangeLog 2006-03-26 18:11:37.000000000 +0200 @@ -1,3 +1,9 @@ +2006-03-26 Uwe Kindler + + * src/lwip/eth_drv.c Add call to lwip_dhcp_init() for + start of DHCP client. Fixed ecosif_output() to handle + the return value of etharp_output() properly. + 2006-01-18 Gary Thomas * src/net/eth_drv.c (eth_drv_send): Better check for overflow Only in ecos_web_cvs/ecos/packages/io/eth/current/cdl: CVS Only in ecos_web_cvs/ecos/packages/io/eth/current/doc: CVS Only in ecos/ecos/packages/io/eth/current/doc: driver_doc Only in ecos_web_cvs/ecos/packages/io/eth/current/include: CVS Only in ecos_web_cvs/ecos/packages/io/eth/current/src: CVS Only in ecos_web_cvs/ecos/packages/io/eth/current/src/lwip: CVS diff -ru ecos_web_cvs/ecos/packages/io/eth/current/src/lwip/eth_drv.c ecos/ecos/packages/io/eth/current/src/lwip/eth_drv.c --- ecos_web_cvs/ecos/packages/io/eth/current/src/lwip/eth_drv.c 2004-01-17 15:14:42.000000000 +0100 +++ ecos/ecos/packages/io/eth/current/src/lwip/eth_drv.c 2006-03-26 16:27:28.000000000 +0200 @@ -88,6 +88,7 @@ extern void lwip_dsr_stuff(void); extern void lwip_set_addr(struct netif *); +extern void lwip_dhcp_init(struct netif *); //DSR called from the low level driver.Signals the input_thread void @@ -126,7 +127,10 @@ } } #endif - + // + // we call this after the driver was started successfully + // + lwip_dhcp_init(netif); } // @@ -277,13 +281,14 @@ static err_t ecosif_output(struct netif *netif, struct pbuf *p, struct ip_addr *ipaddr) { - - p = etharp_output(netif, ipaddr, p); - if (p) { - low_level_output(netif, p); + err_t result; + result = etharp_output(netif, ipaddr, p); + if (ERR_OK == result) + { + result = low_level_output(netif, p); p = NULL; } - return ERR_OK; + return result; } Only in ecos_web_cvs/ecos/packages/io/eth/current/src/net: CVS Only in ecos_web_cvs/ecos/packages/io/eth/current/src/stand_alone: CVS