]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
DHCPv6 now respects the reboot 0 option.
authorRoy Marples <roy@marples.name>
Fri, 5 Apr 2013 14:55:50 +0000 (14:55 +0000)
committerRoy Marples <roy@marples.name>
Fri, 5 Apr 2013 14:55:50 +0000 (14:55 +0000)
dhcp6.c

diff --git a/dhcp6.c b/dhcp6.c
index f59a80e1d98f816ff73202984da0072d68833b48..64286d02f87cebbb7542754e07ce9fdc4dee0c66 100644 (file)
--- a/dhcp6.c
+++ b/dhcp6.c
@@ -1352,7 +1352,8 @@ dhcp6_startinit(struct interface *ifp)
        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)