summaryrefslogtreecommitdiffstats
path: root/src/ipv6.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2019-09-04 03:58:27 +0300
committerRoy Marples <roy@marples.name>2019-09-04 03:58:27 +0300
commit2c0bac9bd4f5e5b75ae68fdced3ef4c620c48236 (patch)
tree7e9a5c0c92adbccb2f0ec03aba955f686fe2ecce /src/ipv6.c
parent8ceece39805126284e444d9d8b15882240cd1c0f (diff)
downloaddhcpcd-2c0bac9bd4f5e5b75ae68fdced3ef4c620c48236.tar.xz
Solaris: Fix Prefix routes without an address
These need to be added as subnet's and no address. Kinda back to front, but heh ho.
Diffstat (limited to 'src/ipv6.c')
-rw-r--r--src/ipv6.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ipv6.c b/src/ipv6.c
index 341e9dd3..ffc12ac3 100644
--- a/src/ipv6.c
+++ b/src/ipv6.c
@@ -1535,7 +1535,13 @@ ipv6_newaddr(struct interface *ifp, const struct in6_addr *addr,
goto err;
} else if (ia->flags & IPV6_AF_RAPFX) {
ia->prefix = *addr;
+#ifdef __sun
+ ia->addr = *addr;
+ cbp = inet_ntop(AF_INET6, &ia->addr, buf, sizeof(buf));
+ goto paddr;
+#else
return ia;
+#endif
} else if (ia->flags & (IPV6_AF_REQUEST | IPV6_AF_DELEGATEDPFX) &&
prefix_len != 128)
{