Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- Hi all it seems to me too. Is there any way to set the dhcp timeout in inche? memes --- Quote End --- I use the superloop setup and for me the file that needed to be changed was at this path: superloop_iniche_lib\iniche\src\misclib\dhcsetup.c Changed this code:
/* wait for DHCP activity to conclude */
/*
* Altera Niche Stack Nios port modification:
* Increase DHCP timeout to > 2 minutes
*/
while (((cticks - dhcp_started) < (100*TPS)) &&
(dhc_alldone() == FALSE))
{
/* let other tasks spin. This is required, since some systems
* increment cticks in tasks, or use a polling task to receive
* packets. Without this activity this loop will never exit.
*/
tk_yield();
pktdemux();# ifdef SUPERLOOP
dhc_second ();# endif
} I think the "100" used to be some other value.