diff options
| author | Roy Marples <roy@marples.name> | 2019-09-04 12:21:08 +0300 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2019-09-04 12:21:08 +0300 |
| commit | c77989d640838de6219c9179c70b332afea6569d (patch) | |
| tree | 82a11ee2ecda8e79433f41421092359223c52a6e /src/if.c | |
| parent | 6daa6537e227810f17dfc361266360c4777e73ca (diff) | |
| download | dhcpcd-c77989d640838de6219c9179c70b332afea6569d.tar.xz | |
Solaris: Get the subnet in ipv6 ifa handler
This simplifies the code and allows onlink route "addresses"
to work on P2P interfaces.
Diffstat (limited to 'src/if.c')
| -rw-r--r-- | src/if.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -241,11 +241,7 @@ if_learnaddrs(struct dhcpcd_ctx *ctx, struct if_head *ifs, case AF_INET6: sin6 = (void *)ifa->ifa_addr; net6 = (void *)ifa->ifa_netmask; -#ifdef __sun - /* Total hack. See if-sun.c */ - if (IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)) - sin6 = (void *)ifa->ifa_dstaddr; -#endif + #ifdef __KAME__ if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr)) /* Remove the scope from the address */ |
