]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix compile on Linux
authorRoy Marples <roy@marples.name>
Thu, 16 May 2013 10:54:20 +0000 (10:54 +0000)
committerRoy Marples <roy@marples.name>
Thu, 16 May 2013 10:54:20 +0000 (10:54 +0000)
if-linux.c
ipv6.c

index 8df6b243b9e7db85d4b8982651865363c517548a..0d668e4d8f18fd5950cd5a52c3ef4f1af7d03f51 100644 (file)
@@ -378,7 +378,7 @@ link_addr(struct nlmsghdr *nlm)
                        }
                        rta = RTA_NEXT(rta, len);
                }
-               ipv6_handleifa(nlm->nlmsg_type, ifn, &addr6);
+               ipv6_handleifa(nlm->nlmsg_type, ifn, &addr6, ifa->ifa_flags);
                break;
 #endif
        }
diff --git a/ipv6.c b/ipv6.c
index c026dfdde4ad562071d78872e1a7a5393dc1e465..134c92c7a8da674f46f48ab28883c6fcf9e1a4a6 100644 (file)
--- a/ipv6.c
+++ b/ipv6.c
@@ -35,7 +35,7 @@
 #  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
+#  define IN6_IFF_TENTATIVE    (IFA_F_TENTATIVE | IFA_F_OPTIMISTIC)
 #  define IN6_IFF_DUPLICATED   IFA_F_DADFAILED
 #else
 #ifdef __FreeBSD__ /* Needed so that including netinet6/in6_var.h works */