diff options
| author | Roy Marples <roy@marples.name> | 2015-05-20 10:25:10 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2015-05-20 10:25:10 +0000 |
| commit | edb0ed379d7d4e1cb40aa6f81a68f58a84b17b03 (patch) | |
| tree | be0ae68274e28a14b3ced72576ed2bd538d3324e /ipv6.c | |
| parent | 4c4d0308bddb76c84f0de8bee6e1295cc7e341a1 (diff) | |
| download | dhcpcd-edb0ed379d7d4e1cb40aa6f81a68f58a84b17b03.tar.xz | |
Fix waiting for ip address, [1972d664c2].
Diffstat (limited to 'ipv6.c')
| -rw-r--r-- | ipv6.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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) { |
