Fix IPv6 DAD test

This commit is contained in:
Roy Marples 2013-05-31 15:15:28 +00:00
parent d128d95214
commit 91c74bf8b4

2
ipv6.c
View File

@ -325,7 +325,7 @@ ipv6_handleifa(int cmd, struct if_head *ifs, const char *ifname,
/* Safety - ignore tentative announcements */
if (cmd == RTM_NEWADDR) {
if (flags & (IN6_IFF_TENTATIVE || IN6_IFF_DUPLICATED))
if (flags & (IN6_IFF_TENTATIVE | IN6_IFF_DUPLICATED))
cmd = RTM_DELADDR;
#ifdef IN6_IFF_DETACHED
if (flags & IN6_IFF_DETACHED)