]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Don't decline leases that we loaded from disk.
authorRoy Marples <roy@marples.name>
Mon, 15 Sep 2008 15:20:09 +0000 (15:20 +0000)
committerRoy Marples <roy@marples.name>
Mon, 15 Sep 2008 15:20:09 +0000 (15:20 +0000)
arp.c

diff --git a/arp.c b/arp.c
index c5acdc75afca370afd522d9dda3831a5ceb74c92..e32af369f589ed09b6774de4506bc6f934a4f2ba 100644 (file)
--- 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);
 }