]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Don't request a DHCPv6 lease when testing
authorRoy Marples <roy@marples.name>
Tue, 10 Dec 2013 12:28:38 +0000 (12:28 +0000)
committerRoy Marples <roy@marples.name>
Tue, 10 Dec 2013 12:28:38 +0000 (12:28 +0000)
dhcp6.c

diff --git a/dhcp6.c b/dhcp6.c
index bcd31ce8abb32b440a462905f90313cabdc094f7..b135273479c3354f5047d6e87a09ede30b4964f5 100644 (file)
--- a/dhcp6.c
+++ b/dhcp6.c
@@ -2152,6 +2152,8 @@ dhcp6_handledata(__unused void *arg)
                ap = TAILQ_FIRST(&state->addrs);
                syslog(LOG_INFO, "%s: ADV %s from %s",
                    ifp->name, ap->saddr, sfrom);
+               if (options & DHCPCD_TEST)
+                       break;
                dhcp6_startrequest(ifp);
                return;
        }