]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Respect nodhcp6 earlier.
authorRoy Marples <roy@marples.name>
Sun, 12 Oct 2014 19:58:46 +0000 (19:58 +0000)
committerRoy Marples <roy@marples.name>
Sun, 12 Oct 2014 19:58:46 +0000 (19:58 +0000)
ipv6nd.c

index 0af3b6afd4e589b619926ee9f84f1a5a8a2309fb..0786b639d331fcc72e89cd144b4f54fc4eb4fa4e 100644 (file)
--- a/ipv6nd.c
+++ b/ipv6nd.c
@@ -1093,6 +1093,8 @@ ipv6nd_handlera(struct ipv6_ctx *ctx, struct interface *ifp,
        eloop_timeout_delete(ifp->ctx->eloop, NULL, rap); /* reachable timer */
 
 handle_flag:
+       if (!(ifp->options->options & DHCPCD_DHCP6))
+               goto nodhcp6;
        if (rap->flags & ND_RA_FLAG_MANAGED) {
                if (new_data && dhcp6_start(ifp, DH6S_INIT) == -1)
                        syslog(LOG_ERR, "dhcp6_start: %s: %m", ifp->name);
@@ -1103,6 +1105,7 @@ handle_flag:
                if (new_data)
                        syslog(LOG_DEBUG, "%s: No DHCPv6 instruction in RA",
                            ifp->name);
+nodhcp6:
                if (ifp->ctx->options & DHCPCD_TEST) {
                        eloop_exit(ifp->ctx->eloop, EXIT_SUCCESS);
                        return;