summaryrefslogtreecommitdiffstats
path: root/ipv6.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2015-05-20 10:25:10 +0000
committerRoy Marples <roy@marples.name>2015-05-20 10:25:10 +0000
commitedb0ed379d7d4e1cb40aa6f81a68f58a84b17b03 (patch)
treebe0ae68274e28a14b3ced72576ed2bd538d3324e /ipv6.c
parent4c4d0308bddb76c84f0de8bee6e1295cc7e341a1 (diff)
downloaddhcpcd-edb0ed379d7d4e1cb40aa6f81a68f58a84b17b03.tar.xz
Fix waiting for ip address, [1972d664c2].
Diffstat (limited to 'ipv6.c')
-rw-r--r--ipv6.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/ipv6.c b/ipv6.c
index c351ac74..67f9a174 100644
--- a/ipv6.c
+++ b/ipv6.c
@@ -1036,6 +1036,17 @@ ipv6_handleifa(struct dhcpcd_ctx *ctx,
}
}
+int
+ipv6_hasaddr(struct interface *ifp)
+{
+
+ if (ipv6nd_iffindaddr(ifp, NULL, 0) != NULL)
+ return 1;
+ if (dhcp6_iffindaddr(ifp, NULL, 0) != NULL)
+ return 1;
+ return 0;
+}
+
const struct ipv6_addr *
ipv6_iffindaddr(const struct interface *ifp, const struct in6_addr *addr)
{