diff options
| author | Roy Marples <roy@marples.name> | 2019-09-04 03:58:27 +0300 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2019-09-04 03:58:27 +0300 |
| commit | 2c0bac9bd4f5e5b75ae68fdced3ef4c620c48236 (patch) | |
| tree | 7e9a5c0c92adbccb2f0ec03aba955f686fe2ecce /src/ipv6.c | |
| parent | 8ceece39805126284e444d9d8b15882240cd1c0f (diff) | |
| download | dhcpcd-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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) { |
