From: Roy Marples Date: Fri, 25 Apr 2014 08:31:26 +0000 (+0000) Subject: Support older Linux kernels where DAD is not reported. X-Git-Tag: v6.4.0~98 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=08373645272adad31b22d21d754a8f514c8c9b83;p=thirdparty%2Fdhcpcd.git Support older Linux kernels where DAD is not reported. --- diff --git a/ipv6.c b/ipv6.c index 5b18f850..9002d0c3 100644 --- a/ipv6.c +++ b/ipv6.c @@ -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 +# 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