summaryrefslogtreecommitdiffstats
path: root/ipv6.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2015-01-19 13:24:39 +0000
committerRoy Marples <roy@marples.name>2015-01-19 13:24:39 +0000
commit727cd92aaf72203d29fb5125d30a0328d4e502f3 (patch)
treedbf4ece537c6f27d6a81b15a5d90239b43638954 /ipv6.c
parent70193d0a9a178e0e7d2ad8d586b4d63277b09785 (diff)
downloaddhcpcd-727cd92aaf72203d29fb5125d30a0328d4e502f3.tar.xz
Change define KERNEL_MANAGETEMPADD to IPV6_MANAGETEMPADDR.
Use this to block out actual address additions so we don't get bogus errors about not being able to create temporary addresses.
Diffstat (limited to 'ipv6.c')
-rw-r--r--ipv6.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ipv6.c b/ipv6.c
index c4a06f7f..f3307936 100644
--- a/ipv6.c
+++ b/ipv6.c
@@ -117,11 +117,11 @@
#endif
-#ifdef KERNEL_MANAGETEMPADDR
-#define ipv6_regentempifid(a) {}
-#else
+#ifdef IPV6_MANAGETEMPADDR
static void ipv6_regentempifid(void *);
static void ipv6_regentempaddr(void *);
+#else
+#define ipv6_regentempifid(a) {}
#endif
struct ipv6_ctx *
@@ -705,7 +705,7 @@ ipv6_addaddr(struct ipv6_addr *ap, const struct timeval *now)
return -1;
}
-#ifndef KERNEL_MANAGETEMPADDR
+#ifdef IPV6_MANAGETEMPADDR
/* RFC4941 Section 3.4 */
if (ap->flags & IPV6_AF_TEMPORARY &&
ap->prefix_pltime &&
@@ -1323,7 +1323,7 @@ ipv6_handleifa_addrs(int cmd,
return alldadcompleted ? found : 0;
}
-#ifndef KERNEL_MANAGETEMPADDR
+#ifdef IPV6_MANAGETEMPADDR
static const struct ipv6_addr *
ipv6_findaddrid(struct dhcpcd_ctx *ctx, uint8_t *addr)
{
@@ -1676,7 +1676,7 @@ ipv6_regentempifid(void *arg)
ipv6_regen_desync(ifp, 1);
}
-#endif /* !KERNEL_MANAGETEMPADDR */
+#endif /* IPV6_MANAGETEMPADDR */
static struct rt6 *
find_route6(struct rt6_head *rts, const struct rt6 *r)