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
+2 -2
View File
@@ -1,7 +1,7 @@
/****************************************************************************
* net/uip/dhcpc.n
*
* Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved.
* Copyright (C) 2007, 2009-2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* This logic was leveraged from uIP which also has a BSD-style license:
@@ -54,12 +54,12 @@
struct dhcpc_state
{
uint16_t lease_time[2];
struct in_addr serverid;
struct in_addr ipaddr;
struct in_addr netmask;
struct in_addr dnsaddr;
struct in_addr default_router;
uint32_t lease_time; /* Lease expires in this number of seconds */
};
/****************************************************************************