summaryrefslogtreecommitdiffstats
path: root/src/if.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2019-09-04 12:21:08 +0300
committerRoy Marples <roy@marples.name>2019-09-04 12:21:08 +0300
commitc77989d640838de6219c9179c70b332afea6569d (patch)
tree82a11ee2ecda8e79433f41421092359223c52a6e /src/if.c
parent6daa6537e227810f17dfc361266360c4777e73ca (diff)
downloaddhcpcd-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.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/if.c b/src/if.c
index 5aedbd00..c483f046 100644
--- a/src/if.c
+++ b/src/if.c
@@ -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 */