changeset 2439:53293fabc47a draft

Support older Linux kernels where DAD is not reported.
author Roy Marples <roy@marples.name>
date Fri, 25 Apr 2014 08:31:26 +0000
parents f58aadd5d2b3
children ccf0842319fe
files ipv6.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ipv6.c	Fri Apr 25 08:16:02 2014 +0000
+++ b/ipv6.c	Fri Apr 25 08:31:26 2014 +0000
@@ -39,9 +39,13 @@
 #  ifdef IFA_F_OPTIMISTIC
 #    define IN6_IFF_TENTATIVE	(IFA_F_TENTATIVE | IFA_F_OPTIMISTIC)
 #  else
-#    define IN6_IFF_TENTATIVE   IFA_F_TENTATIVE
+#    define IN6_IFF_TENTATIVE   (IFA_F_TENTATIVE | 0x04)
 #  endif
-#  define IN6_IFF_DUPLICATED	IFA_F_DADFAILED
+#  ifdef IF_F_DADFAILED
+#    define IN6_IFF_DUPLICATED	IFA_F_DADFAILED
+#  else
+#    define IN6_IFF_DUPLICATED	0x08
+#  endif
 #  define IN6_IFF_DETACHED	0
 #else
 #  include <net/if.h>