summaryrefslogtreecommitdiffstats
path: root/arp.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-09-15 15:20:09 +0000
committerRoy Marples <roy@marples.name>2008-09-15 15:20:09 +0000
commit9266112e617cb0ac5fe3124b5ab512d83e8d9cc6 (patch)
treebfaa1d36c6da689f74daa24b95b8fee742092cda /arp.c
parent43205146f8f2d0a5846262c5154fc36d16e00257 (diff)
downloaddhcpcd-9266112e617cb0ac5fe3124b5ab512d83e8d9cc6.tar.xz
Don't decline leases that we loaded from disk.
Diffstat (limited to 'arp.c')
-rw-r--r--arp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arp.c b/arp.c
index c5acdc75..e32af369 100644
--- a/arp.c
+++ b/arp.c
@@ -81,7 +81,8 @@ handle_arp_failure(struct interface *iface)
handle_ipv4ll_failure(iface);
return;
}
- send_decline(iface);
+ if (!iface->state->lease.frominfo)
+ send_decline(iface);
close_sockets(iface);
add_timeout_sec(DHCP_ARP_FAIL, start_interface, iface);
}