]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Support older Linux kernels where DAD is not reported.
authorRoy Marples <roy@marples.name>
Fri, 25 Apr 2014 08:31:26 +0000 (08:31 +0000)
committerRoy Marples <roy@marples.name>
Fri, 25 Apr 2014 08:31:26 +0000 (08:31 +0000)
ipv6.c

diff --git a/ipv6.c b/ipv6.c
index 5b18f850310c98726b7144a76224833b2777bbee..9002d0c33ce446af6b753e5d4c6cf5596aac87f1 100644 (file)
--- a/ipv6.c
+++ b/ipv6.c
 #  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
+#  ifdef IF_F_DADFAILED
+#    define IN6_IFF_DUPLICATED IFA_F_DADFAILED
+#  else
+#    define IN6_IFF_DUPLICATED 0x08
 #  endif
-#  define IN6_IFF_DUPLICATED   IFA_F_DADFAILED
 #  define IN6_IFF_DETACHED     0
 #else
 #  include <net/if.h>