summaryrefslogtreecommitdiffstats
path: root/dhcpcd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-11-04 10:13:07 +0000
committerRoy Marples <roy@marples.name>2008-11-04 10:13:07 +0000
commit5b7112f52583dff9385712b40bb800e2febd36ad (patch)
treeef4aa830600133ba6504115aa5a0fe5a6cd05618 /dhcpcd.c
parent4c240a4a92ca40661353c9e27061cfbe4bbf1807 (diff)
downloaddhcpcd-5b7112f52583dff9385712b40bb800e2febd36ad.tar.xz
Test should always DISCOVER.
Diffstat (limited to 'dhcpcd.c')
-rw-r--r--dhcpcd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dhcpcd.c b/dhcpcd.c
index 4741594c..e2d2b4cd 100644
--- 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 &&