changeset 5355:6c3a684c5a67 draft

BSD: Mark address AUTOCONF if no kernel RA
author Roy Marples <roy@marples.name>
date Sun, 14 Jun 2020 15:26:59 +0100
parents 698ae772942e
children 39a8d5dfe695
files src/if-bsd.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/if-bsd.c	Thu Jun 11 15:37:33 2020 +0100
+++ b/src/if-bsd.c	Sun Jun 14 15:26:59 2020 +0100
@@ -1004,8 +1004,7 @@
 	if (ia->addr_flags & IN6_IFF_TENTATIVE)
 		ifa.ifra_flags |= IN6_IFF_TENTATIVE;
 #endif
-// #if (defined(__NetBSD__) && __NetBSD_Version__ >= 999005700) ||
-#if    (defined(__OpenBSD__) && OpenBSD >= 201605)
+#if !defined(IPV6CTL_ACCEPT_RTADV) && !defined(ND6_IFF_ACCEPT_RTADV)
 	if (ia->flags & IPV6_AF_AUTOCONF)
 		ifa.ifra_flags |= IN6_IFF_AUTOCONF;
 #endif