summaryrefslogtreecommitdiffstats
path: root/if-bsd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-08-16 16:27:02 +0000
committerRoy Marples <roy@marples.name>2016-08-16 16:27:02 +0000
commit0d95c0162cd5a69db8a36bae6bd9a90810328667 (patch)
tree06c3aee53abe12ea65c7ef05844bd4383aa93786 /if-bsd.c
parent10508b2949132ef02aca218c28967d69e0a1e5c6 (diff)
downloaddhcpcd-0d95c0162cd5a69db8a36bae6bd9a90810328667.tar.xz
Note that the IPv6 address lifetime issue is now fixed in NetBSD.
Diffstat (limited to 'if-bsd.c')
-rw-r--r--if-bsd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/if-bsd.c b/if-bsd.c
index d8ffe1f6..b15dc785 100644
--- a/if-bsd.c
+++ b/if-bsd.c
@@ -967,11 +967,13 @@ if_address6(unsigned char cmd, const struct ipv6_addr *ia)
* This issue is discussed on the NetBSD mailing lists here:
* http://mail-index.netbsd.org/tech-net/2016/08/05/msg006044.html
*
- * NOT fixed in NetBSD - patch under development
+ * Fixed in NetBSD-7.99.36
* NOT fixed in FreeBSD - bug 195197
* Fixed in OpenBSD-5.9
*/
-#if !(defined(OpenBSD) && OpenBSD >= 201605)
+
+#if !((defined(__NetBSD_Version__) && __NetBSD_Version__ >= 799003600) || \
+ (defined(OpenBSD) && OpenBSD >= 201605))
if (cmd == RTM_NEWADDR && !(ia->flags & IPV6_AF_ADDED)) {
ifa.ifra_lifetime.ia6t_vltime = ND6_INFINITE_LIFETIME;
ifa.ifra_lifetime.ia6t_pltime = ND6_INFINITE_LIFETIME;