]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Treat IPv4LL as fallback and start DHCP discovery even if the prior lease
authorRoy Marples <roy@marples.name>
Wed, 22 Oct 2014 08:59:01 +0000 (08:59 +0000)
committerRoy Marples <roy@marples.name>
Wed, 22 Oct 2014 08:59:01 +0000 (08:59 +0000)
was IPv4LL when rebooting.

dhcp.c

diff --git a/dhcp.c b/dhcp.c
index e0498647eb774e9e43fd141536091cbb57f9c467..81ca1d84d169f1e94c23c835b7570ed005bec77b 100644 (file)
--- a/dhcp.c
+++ b/dhcp.c
@@ -3042,10 +3042,8 @@ dhcp_start1(void *arg)
                return;
        }
 
-       if (state->offer == NULL)
+       if (state->offer == NULL || state->offer->cookie == 0)
                dhcp_discover(ifp);
-       else if (state->offer->cookie == 0 && ifo->options & DHCPCD_IPV4LL)
-               ipv4ll_start(ifp);
        else
                dhcp_reboot(ifp);
 }