diff options
Diffstat (limited to 'nuttx/examples')
-rw-r--r-- | nuttx/examples/nsh/nsh_telnetd.c | 4 | ||||
-rw-r--r-- | nuttx/examples/uip/main.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/nuttx/examples/nsh/nsh_telnetd.c b/nuttx/examples/nsh/nsh_telnetd.c index d9a590217..26a7f854a 100644 --- a/nuttx/examples/nsh/nsh_telnetd.c +++ b/nuttx/examples/nsh/nsh_telnetd.c @@ -839,7 +839,9 @@ int nsh_telnetmain(int argc, char *argv[]) handle = dhcpc_open(&mac, IFHWADDRLEN); - /* Get an IP address */ + /* Get an IP address. Note that there is no logic for renewing the IP address in this + * example. The address should be renewed in ds.lease_time/2 seconds. + */ if (handle) { diff --git a/nuttx/examples/uip/main.c b/nuttx/examples/uip/main.c index d5df1f807..39f451a26 100644 --- a/nuttx/examples/uip/main.c +++ b/nuttx/examples/uip/main.c @@ -170,7 +170,9 @@ int user_start(int argc, char *argv[]) handle = dhcpc_open(&mac, IFHWADDRLEN); - /* Get an IP address */ + /* Get an IP address. Note: there is no logic here for renewing the address in this + * example. The address should be renewed in ds.lease_time/2 seconds. + */ printf("Getting IP address\n"); if (handle) |