Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- If you want to disable DHCP you have two options: 1 - Open the BSP editor for your project and disable the DHCP client for the InterNiche Stack. 2 - Edit the function "get_ip_addr" in the file "network_utilities.c" for the simple socket server example so that it doesn't set the variable "*use_dhcp" to 1 before returning. If you want to reduce the DHCP timeout, there is a function called "dhc_set_timeout" which you can call before initializing the InterNiche stack. What you would do is put the declaration:
extern void dhc_set_timeout(int timeout_sec);at the top of your file. Then you simply call dhc_set_timeout with the timeout value in seconds before the call to "iniche_initialize". Jake --- Quote End --- Sorry for the graveyard rez, but I am trying to set the timeout with a function like in this post, but there is no "dhc_set_timeout" in my workspace. Has the name of this function changed?