summaryrefslogtreecommitdiffstats
path: root/src/ipv6nd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-11-04 14:18:48 +0000
committerRoy Marples <roy@marples.name>2020-11-04 14:18:48 +0000
commite9dfc2416bc5ff97166905cbb69e71dd2be6411a (patch)
treedf5dadc4500f91e4b559efb8cc82a8e4e23f44be /src/ipv6nd.c
parentd5565ba4c5306332c2b6f00aef184579beb31e33 (diff)
downloaddhcpcd-e9dfc2416bc5ff97166905cbb69e71dd2be6411a.tar.xz
Add --noconfigure option
With this set dhcpcd will not configure anything on the host. The expectation is that a 3rd party script will instead.
Diffstat (limited to 'src/ipv6nd.c')
-rw-r--r--src/ipv6nd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ipv6nd.c b/src/ipv6nd.c
index 1c082ae4..f0a79d51 100644
--- a/src/ipv6nd.c
+++ b/src/ipv6nd.c
@@ -1494,13 +1494,18 @@ ipv6nd_handlera(struct dhcpcd_ctx *ctx,
script_runreason(ifp, "TEST");
goto handle_flag;
}
+
+ if (!(ifp->options->options & DHCPCD_CONFIGURE))
+ goto run;
+
ipv6nd_applyra(ifp);
ipv6_addaddrs(&rap->addrs);
#ifdef IPV6_MANAGETEMPADDR
ipv6_addtempaddrs(ifp, &rap->acquired);
#endif
-
rt_build(ifp->ctx, AF_INET6);
+
+run:
ipv6nd_scriptrun(rap);
eloop_timeout_delete(ifp->ctx->eloop, NULL, ifp);