From d914e23f5517869ea04a0ed2d657217dc4900ea3 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 16 May 2013 10:54:20 +0000 Subject: [PATCH] Fix compile on Linux --- if-linux.c | 2 +- ipv6.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/if-linux.c b/if-linux.c index 8df6b243..0d668e4d 100644 --- a/if-linux.c +++ b/if-linux.c @@ -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 c026dfdd..134c92c7 100644 --- a/ipv6.c +++ b/ipv6.c @@ -35,7 +35,7 @@ # include /* for systems with broken headers */ # include /* 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 */ -- 2.47.3