]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Test should always DISCOVER.
authorRoy Marples <roy@marples.name>
Tue, 4 Nov 2008 10:13:07 +0000 (10:13 +0000)
committerRoy Marples <roy@marples.name>
Tue, 4 Nov 2008 10:13:07 +0000 (10:13 +0000)
dhcpcd.c

index 4741594c011a88a63ffabc5195b0ad26e06ee0fe..e2d2b4cdda395d7fec63a5527694602106b3363c 100644 (file)
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -774,6 +774,10 @@ start_interface(void *arg)
        }
 
        iface->start_uptime = uptime();
+       if (options & DHCPCD_TEST) {
+               start_discover(iface);
+               return;
+       }
        if (ifo->request_address.s_addr) {
                /* This also changes netmask */
                if (iface->state->options->options & DHCPCD_INFORM &&