]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
dhcp: Don't ARP announce bound addresses when testing
authorRoy Marples <roy@marples.name>
Sun, 30 Dec 2018 19:25:05 +0000 (19:25 +0000)
committerRoy Marples <roy@marples.name>
Sun, 30 Dec 2018 19:25:05 +0000 (19:25 +0000)
src/dhcp.c

index 1e9fe186dbf960a93c8674cef0ca36bea5a352bd..d8e71f361c8d19f0473dfdd8ec307c7ded89278a 100644 (file)
@@ -2631,6 +2631,7 @@ dhcp_reboot(struct interface *ifp)
         * interface gets the reply. */
        ia = ipv4_iffindaddr(ifp, &state->lease.addr, NULL);
        if (ia != NULL &&
+           !(ifp->ctx->options & DHCPCD_TEST) &&
 #ifdef IN_IFF_NOTUSEABLE
            !(ia->addr_flags & IN_IFF_NOTUSEABLE) &&
 #endif