From: Roy Marples Date: Tue, 6 Jan 2015 13:42:51 +0000 (+0000) Subject: Fix another case where we could mistakenly claim ownership of IPv6 RA. X-Git-Tag: v6.7.0~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fbdd880934a542cfa423fc3b469dbfe0b336dfc;p=thirdparty%2Fdhcpcd.git Fix another case where we could mistakenly claim ownership of IPv6 RA. --- diff --git a/dhcpcd.c b/dhcpcd.c index 700b5c2f..26d8e894 100644 --- 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; }