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 | ab43b6be9768f73a0f747f23696b1d528538c874 (patch) | |
| tree | 7e9a5c0c92adbccb2f0ec03aba955f686fe2ecce /src/ipv6.c | |
| parent | 8b7c65c3c47e4b055bd15c88160eb3aff615a525 (diff) | |
| download | dhcpcd-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.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) { |
