changeset 1909:1f73726a4cdf draft

DHCPv6 now respects the reboot 0 option.
author Roy Marples <roy@marples.name>
date Fri, 05 Apr 2013 14:55:50 +0000
parents bd797ebcda56
children 6cd1814cd012
files dhcp6.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dhcp6.c	Fri Apr 05 09:47:33 2013 +0000
+++ b/dhcp6.c	Fri Apr 05 14:55:50 2013 +0000
@@ -1352,7 +1352,8 @@
 	state->expire = ~0U;
 	state->lowpl = ~0U;
 	if (!(options & DHCPCD_TEST) &&
-	    ifp->options->ia_type != D6_OPTION_IA_TA)
+	    ifp->options->ia_type != D6_OPTION_IA_TA &&
+	    ifp->options->reboot != 0)
 	{
 		r = dhcp6_readlease(ifp);
 		if (r == -1)