ntp-4.2.6p2-tentative.patch 838 B

123456789101112131415161718192021222324
  1. diff -up ntp-4.2.6p2/lib/isc/unix/interfaceiter.c.tentative ntp-4.2.6p2/lib/isc/unix/interfaceiter.c
  2. --- ntp-4.2.6p2/lib/isc/unix/interfaceiter.c.tentative 2010-06-12 08:13:53.000000000 +0200
  3. +++ ntp-4.2.6p2/lib/isc/unix/interfaceiter.c 2010-07-12 16:25:43.000000000 +0200
  4. @@ -45,6 +45,8 @@
  5. #include <isc/types.h>
  6. #include <isc/util.h>
  7. +#include <linux/rtnetlink.h>
  8. +
  9. /* Must follow <isc/net.h>. */
  10. #ifdef HAVE_NET_IF6_H
  11. #include <net/if6.h>
  12. @@ -252,6 +254,10 @@ linux_if_inet6_current(isc_interfaceiter
  13. iter->current.flags |= INTERFACE_F_MULTICAST;
  14. #endif
  15. + /* ignore tentative address */
  16. + if (flags & IFA_F_TENTATIVE)
  17. + iter->current.flags &= ~INTERFACE_F_UP;
  18. +
  19. isc_netaddr_fromin6(&iter->current.address, &addr6);
  20. if (isc_netaddr_islinklocal(&iter->current.address)) {
  21. isc_netaddr_setzone(&iter->current.address,