--- Quote Start ---
originally posted by nir@Sep 14 2004, 09:22 PM
hi all
i am trying to use the dhcp client in the lwip package. i've created a new web server project for the ep1c20 evaluation board and i see that there are dhcp.c and dhcp.h files in there, but no one seems to use them, so i don't think that the dhcp client is actually doing what it's supposed to do.
my question is: is there any file or example showing how this client should be activated ? --- Quote End ---
nir,
If you're using LWIP with MicroC OS II then this is simple. If you look Chapter 9 of the Nios II Software Developers Handbook it explains that you need to implement a function as part of your application called get_ip_addr. This is where you decide what IP address to use, or whether to use DHCP. If you look at one of the networking example designs you will also see that there are example implementations of these functions.
Hope that helps,