]>
Commit | Line | Data |
---|---|---|
1 | diff -up ntp-4.2.6p3/lib/isc/unix/interfaceiter.c.tentative ntp-4.2.6p3/lib/isc/unix/interfaceiter.c | |
2 | --- ntp-4.2.6p3/lib/isc/unix/interfaceiter.c.tentative 2010-12-25 10:40:35.000000000 +0100 | |
3 | +++ ntp-4.2.6p3/lib/isc/unix/interfaceiter.c 2011-01-05 17:49:44.429413622 +0100 | |
4 | @@ -45,6 +45,8 @@ | |
5 | #include <isc/types.h> | |
6 | #include <isc/util.h> | |
7 | ||
8 | +#include <linux/rtnetlink.h> | |
9 | + | |
10 | /* Must follow <isc/net.h>. */ | |
11 | #ifdef HAVE_NET_IF6_H | |
12 | #include <net/if6.h> | |
13 | @@ -253,6 +255,10 @@ linux_if_inet6_current(isc_interfaceiter | |
14 | iter->current.flags |= INTERFACE_F_MULTICAST; | |
15 | #endif | |
16 | ||
17 | + /* ignore tentative address */ | |
18 | + if (flags & IFA_F_TENTATIVE) | |
19 | + iter->current.flags &= ~INTERFACE_F_UP; | |
20 | + | |
21 | isc_netaddr_fromin6(&iter->current.address, &addr6); | |
22 | iter->current.ifindex = ifindex; | |
23 | if (isc_netaddr_islinklocal(&iter->current.address)) { |