This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

NDK DHCP client retry rather than give up

Is there a way to configure the DHCP client defined in the NDK to retry at some interval? For example, if the DHCP server is down I don't want client to ever give up.

I've looked through the Ip and DhcpClient settings associated with the common.cfg with no luck. I couldn't find an explanation for the Ip.dhcpClientMode setting.

I'm using version 2.24 of the NDK, which should mean the following issue isn't applicable:

processors.wiki.ti.com/.../Network_Developers_Kit_FAQ

  • I didn't notice it at first, but the above page applies to a different set of processors. I'm using a Tiva TM4C1294NCPT
  • Yes.  That FAQ is referring to the NDK client example (it's an old example that doesn't ship with TI-RTOS).  There is no configuration option to do this, like you were guessing at, rather you need to check for a fault, and then remove the DHCP client service, and then add it back again.  This is done in C code at run time, using the NDK legacy configuration scheme (a set of run time C configuration APIs, see appendix of NDK API guide for details).

    In particular, the DHCP code that's being referred to in that FAQ can be found in the client.c that's in the old NDK version 2.0.0.  You can find it on the NDK download page, but I'll attach it to this thread for your convenience.

    Lastly, most of that FAQ page is generic info, so your case of having a Tiva board won't matter too much with respect to that wiki.

    Steve