summaryrefslogtreecommitdiffstats
path: root/src/ipv6.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/ipv6.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/ipv6.c')
-rw-r--r--src/ipv6.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ipv6.c b/src/ipv6.c
index 3f0c1d8c..c9150c07 100644
--- a/src/ipv6.c
+++ b/src/ipv6.c
@@ -1416,6 +1416,9 @@ ipv6_addlinklocal(struct interface *ifp)
struct ipv6_addr *ap, *ap2;
int dadcounter;
+ if (!(ifp->options->options & DHCPCD_CONFIGURE))
+ return 0;
+
/* Check sanity before malloc */
if (!(ifp->options->options & DHCPCD_SLAACPRIVATE)) {
switch (ifp->hwtype) {