Forum Discussion
Altera_Forum
Honored Contributor
15 years agoOk, thanks.
I got it running but with some workaround. I included the change_ip() function in network_utilities.c and made it "extern" so i can run it inside the webserver.c. Then I also added# include "dhcpclnt.h" to the network_utilities.c as well as defining the NetInfo struct. But there is still a warning, because "dhc_set_state" is not known. Curiously this function is defined in dhcpclnt.c and not in the header file. As I don't really need the dhcp at the moment I don't care. Just for the sake of interest. Which version of the NIOS-IDE do you use? I use the 9.1 SP2 of NIOS and i.e. the definition of IP4_ADDR is only in the network_utilities.c instead of webserver.h as it seems to be on your system.