Lease time is now in host order

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2839 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2010-08-10 16:39:34 +00:00
parent 96664e98d4
commit f71c623cfb
4 changed files with 32 additions and 7 deletions
+3 -1
View File
@@ -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)
{
+3 -1
View File
@@ -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)