changeset 2436:39ad227cc122 draft

Work without IFA_F_OPTIMISTIC on Linux.
author Roy Marples <roy@marples.name>
date Thu, 24 Apr 2014 09:28:31 +0000
parents f019e484f471
children 6a132edb5389
files ipv6.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ipv6.c	Thu Apr 24 08:56:21 2014 +0000
+++ b/ipv6.c	Thu Apr 24 09:28:31 2014 +0000
@@ -36,7 +36,11 @@
 #  include <asm/types.h> /* for systems with broken headers */
 #  include <linux/rtnetlink.h>
    /* Match Linux defines to BSD */
-#  define IN6_IFF_TENTATIVE	(IFA_F_TENTATIVE | IFA_F_OPTIMISTIC)
+#  ifdef IFA_F_OPTIMISTIC
+#    define IN6_IFF_TENTATIVE	(IFA_F_TENTATIVE | IFA_F_OPTIMISTIC)
+#  else
+#    define IN6_IFF_TENTATIVE   IFA_F_TENTATIVE
+#  endif
 #  define IN6_IFF_DUPLICATED	IFA_F_DADFAILED
 #  define IN6_IFF_DETACHED	0
 #else