changeset 2893:64b287904152 draft

Don't set RA ownership in test mode.
author Roy Marples <roy@marples.name>
date Thu, 18 Dec 2014 10:09:54 +0000
parents 0fa088261ebd
children 3e7f61da742c
files dhcpcd.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dhcpcd.c	Wed Dec 17 20:33:27 2014 +0000
+++ b/dhcpcd.c	Thu Dec 18 10:09:54 2014 +0000
@@ -370,7 +370,8 @@
 	if (!(ifo->options & DHCPCD_IPV6))
 		ifo->options &= ~(DHCPCD_IPV6RS | DHCPCD_DHCP6);
 
-	if (ifo->options & DHCPCD_SLAACPRIVATE)
+	if (ifo->options & DHCPCD_SLAACPRIVATE &&
+	    !(ifp->ctx->options & DHCPCD_TEST))
 		ifo->options |= DHCPCD_IPV6RA_OWN;
 
 	/* We want to disable kernel interface RA as early as possible. */