summaryrefslogtreecommitdiffstats
path: root/src/ipv6nd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2019-07-25 17:20:41 +0100
committerRoy Marples <roy@marples.name>2019-07-25 17:20:41 +0100
commitfc22030db0f8adbfb104cdbbd9bde792ebd1a627 (patch)
tree26503e1614f8ec2ebb8d5cd60e2a4fdbd1550849 /src/ipv6nd.c
parent514c4d72f5cd72aedae70e2e40e325a62e5740ff (diff)
downloaddhcpcd-fc22030db0f8adbfb104cdbbd9bde792ebd1a627.tar.xz
Remove ND6 Advertisement from SMALL builds.
This is quite a saving and is only used for IP6 address sharing which only works on NetBSD.
Diffstat (limited to 'src/ipv6nd.c')
-rw-r--r--src/ipv6nd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ipv6nd.c b/src/ipv6nd.c
index 1c4d8c84..5968bb89 100644
--- a/src/ipv6nd.c
+++ b/src/ipv6nd.c
@@ -389,6 +389,7 @@ ipv6nd_sendrsprobe(void *arg)
}
}
+#ifdef ND6_ADVERTISE
static void
ipv6nd_sendadvertisement(void *arg)
{
@@ -526,6 +527,7 @@ ipv6nd_advertise(struct ipv6_addr *ia)
eloop_timeout_delete(ctx->eloop, ipv6nd_sendadvertisement, iaf);
ipv6nd_sendadvertisement(iaf);
}
+#endif /* ND6_ADVERTISE */
static void
ipv6nd_expire(void *arg)
@@ -908,7 +910,9 @@ try_script:
return;
}
}
+#ifdef ND6_ADVERTISE
ipv6nd_advertise(ia);
+#endif
}
}