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
commitab43b6be9768f73a0f747f23696b1d528538c874 (patch)
tree7e9a5c0c92adbccb2f0ec03aba955f686fe2ecce /src/ipv6.c
parent8b7c65c3c47e4b055bd15c88160eb3aff615a525 (diff)
downloaddhcpcd-ab43b6be9768f73a0f747f23696b1d528538c874.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)
{