ntp-4.2.6p1-rtnetlink.patch 1.1 KB

123456789101112131415161718192021222324252627
  1. diff -up ntp-4.2.6p1/configure.rtnetlink ntp-4.2.6p1/configure
  2. --- ntp-4.2.6p1/configure.rtnetlink 2010-02-09 11:19:49.000000000 +0100
  3. +++ ntp-4.2.6p1/configure 2010-03-04 17:11:50.000000000 +0100
  4. @@ -20579,6 +20579,7 @@ else
  5. /* end confdefs.h. */
  6. #include <stddef.h>
  7. +#include <sys/socket.h>
  8. #include <linux/rtnetlink.h>
  9. int
  10. main ()
  11. diff -up ntp-4.2.6p1/ntpd/ntp_io.c.rtnetlink ntp-4.2.6p1/ntpd/ntp_io.c
  12. --- ntp-4.2.6p1/ntpd/ntp_io.c.rtnetlink 2009-12-09 08:36:37.000000000 +0100
  13. +++ ntp-4.2.6p1/ntpd/ntp_io.c 2010-03-04 17:11:32.000000000 +0100
  14. @@ -4304,10 +4304,7 @@ init_async_notifications()
  15. #ifdef HAVE_RTNETLINK
  16. memset(&sa, 0, sizeof(sa));
  17. sa.nl_family = PF_NETLINK;
  18. - sa.nl_groups = RTMGRP_LINK | RTMGRP_IPV4_IFADDR
  19. - | RTMGRP_IPV6_IFADDR | RTMGRP_IPV4_ROUTE
  20. - | RTMGRP_IPV4_MROUTE | RTMGRP_IPV6_ROUTE
  21. - | RTMGRP_IPV6_MROUTE;
  22. + sa.nl_groups = RTMGRP_IPV4_IFADDR | RTMGRP_IPV6_IFADDR;
  23. if (bind(fd, (struct sockaddr *)&sa, sizeof(sa)) < 0) {
  24. msyslog(LOG_ERR,
  25. "bind failed on routing socket (%m) - using polled interface update");