]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix another case where we could mistakenly claim ownership of IPv6 RA.
authorRoy Marples <roy@marples.name>
Tue, 6 Jan 2015 13:42:51 +0000 (13:42 +0000)
committerRoy Marples <roy@marples.name>
Tue, 6 Jan 2015 13:42:51 +0000 (13:42 +0000)
dhcpcd.c

index 700b5c2f8d30a7727f31aa6e3f180f41e6228138..26d8e894d824281bd1f57af0d07c4f705662b58c 100644 (file)
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -385,7 +385,7 @@ configure_interface1(struct interface *ifp)
                    ifp->options->options & DHCPCD_IPV6RA_OWN ? 1 : 0);
                if (ra_global == -1 || ra_iface == -1)
                        ifo->options &= ~DHCPCD_IPV6RS;
-               else if (ra_iface == 0)
+               else if (ra_iface == 0 && !(ifp->ctx->options & DHCPCD_TEST))
                        ifo->options |= DHCPCD_IPV6RA_OWN;
        }