summaryrefslogtreecommitdiffstats
path: root/dhcp.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-09-15 15:23:46 +0000
committerRoy Marples <roy@marples.name>2008-09-15 15:23:46 +0000
commita2a9a498da4327ecf2fdec8560bb9a3557490fa9 (patch)
tree5d89cf7c1883f60b5151b188f9220e070e910efe /dhcp.c
parent78c8e969a552d0076faab4065ed627e5f14cb814 (diff)
downloaddhcpcd-a2a9a498da4327ecf2fdec8560bb9a3557490fa9.tar.xz
Reboot off the last lease and use the last lease if not expired and user has asked for it. Also, add a reboot timeout toggle (default 10 seconds).
Diffstat (limited to 'dhcp.c')
-rw-r--r--dhcp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/dhcp.c b/dhcp.c
index 7b2993e0..0aa13fa6 100644
--- a/dhcp.c
+++ b/dhcp.c
@@ -1254,7 +1254,6 @@ get_lease(struct dhcp_lease *lease, const struct dhcp_message *dhcp)
{
time_t t;
- lease->frominfo = 0;
lease->addr.s_addr = dhcp->yiaddr;
if (get_option_addr(&lease->net.s_addr, dhcp, DHO_SUBNETMASK) == -1)
lease->net.s_addr = get_netmask(dhcp->yiaddr);