This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: lwIP configuration option patch


Hello Andrew,

I never used DHCP with lwIP here so I never discovered this problem. I used a fixed IP address to run the tests. Today I compiled the tests with DHCP support and tried to debug them but insight did not list the dhcp.c file in its sources. I inserted an #error message into the dhcp.c file to check if it is built - it is. So it must be linker garbage collection because the dhcp functions are simply not referenced anywhere in the code. I checked the lwip code and there is not initialisation for dhcp and also the timer functions dhcp_fine_tmr() and dhcp_coarse_tmr() are never called.

So obviously Jani Monoses, who contributed the original lwIP patch, also never used DHCP ;o) I will try to add DHCP support as soon as I have the time (maybe in some weeks). At least my patch did not broke DHCP support - so please try a fixed IP address when testing.

Uwe

ecosconfig new linux lwip_eth

then enabled dhcp. I then built eCos and the lwip tests. I found that
it does not send anything out the ethernet port. Enabling debugging it
looks like it is not adding the ethernet interface, there is only the
loopback interface.

lunn@londo:~/eCos/work2$ ./install/tests/net/lwip_tcpip/current/tests/httpd
netif_set_ipaddr: netif address being changed
netif: IP address of interface  set to 127.0.0.1
netif: netmask of interface  set to 255.0.0.0
netif: GW address of interface  set to 127.0.0.1
netif: added interface lo IP addr 127.0.0.1 netmask 255.0.0.0 gw 127.0.0.1
tcp_bind: bind to port 80


Am i doing something wrong?


        Thanks
                Andrew


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]