summaryrefslogtreecommitdiffstats
path: root/src/ipv6.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2019-04-23 17:27:52 +0000
committerRoy Marples <roy@marples.name>2019-04-23 17:27:52 +0000
commitdbd833af35185fc90846551174b31931f56219a0 (patch)
tree41bfae5a2e3acfe7e0fe6af3067eaec3bc826935 /src/ipv6.c
parentbb62c10be085b65d6edd707f70520271d4274a39 (diff)
downloaddhcpcd-dbd833af35185fc90846551174b31931f56219a0.tar.xz
sun: Open an IPv6ND socket per interface
This is needed because we need to join the all-nodes multi-cast group and that only works per interface.
Diffstat (limited to 'src/ipv6.c')
-rw-r--r--src/ipv6.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ipv6.c b/src/ipv6.c
index 38b838c7..de8570f0 100644
--- a/src/ipv6.c
+++ b/src/ipv6.c
@@ -137,7 +137,9 @@ ipv6_init(struct dhcpcd_ctx *ctx)
return -1;
TAILQ_INIT(ctx->ra_routers);
+#ifndef __sun
ctx->nd_fd = -1;
+#endif
ctx->dhcp6_fd = -1;
return 0;
}