- updated to 4.2.8p15
[packages/ntp.git] / ntp-4.2.6p1-rtnetlink.patch
1 diff -up ntp-4.2.6p3/ntpd/ntp_io.c.rtnetlink ntp-4.2.6p3/ntpd/ntp_io.c
2 --- ntp-4.2.6p3/ntpd/ntp_io.c.rtnetlink 2011-01-05 16:03:19.328001089 +0100
3 +++ ntp-4.2.6p3/ntpd/ntp_io.c   2011-01-05 16:03:19.349001911 +0100
4 @@ -4549,10 +4549,7 @@ init_async_notifications()
5  #ifdef HAVE_RTNETLINK
6         memset(&sa, 0, sizeof(sa));
7         sa.nl_family = PF_NETLINK;
8 -       sa.nl_groups = RTMGRP_LINK | RTMGRP_IPV4_IFADDR
9 -                      | RTMGRP_IPV6_IFADDR | RTMGRP_IPV4_ROUTE
10 -                      | RTMGRP_IPV4_MROUTE | RTMGRP_IPV6_ROUTE
11 -                      | RTMGRP_IPV6_MROUTE;
12 +       sa.nl_groups = RTMGRP_IPV4_IFADDR | RTMGRP_IPV6_IFADDR;
13         if (bind(fd, (struct sockaddr *)&sa, sizeof(sa)) < 0) {
14                 msyslog(LOG_ERR,
15                         "bind failed on routing socket (%m) - using polled interface update");