]>
Commit | Line | Data |
---|---|---|
0ffcfbfc KK |
1 | diff -up ntp-4.2.6p3/configure.rtnetlink ntp-4.2.6p3/configure |
2 | --- ntp-4.2.6p3/configure.rtnetlink 2011-01-04 03:03:47.000000000 +0100 | |
3 | +++ ntp-4.2.6p3/configure 2011-01-05 17:39:29.342985208 +0100 | |
4 | @@ -25858,6 +25858,7 @@ else | |
a8809dbd ER |
5 | /* end confdefs.h. */ |
6 | ||
0ffcfbfc KK |
7 | #include <stddef.h> |
8 | + #include <sys/socket.h> | |
9 | #include <linux/rtnetlink.h> | |
10 | ||
a8809dbd | 11 | int |
0ffcfbfc KK |
12 | diff -up ntp-4.2.6p3/ntpd/ntp_io.c.rtnetlink ntp-4.2.6p3/ntpd/ntp_io.c |
13 | --- ntp-4.2.6p3/ntpd/ntp_io.c.rtnetlink 2011-01-05 16:03:19.328001089 +0100 | |
14 | +++ ntp-4.2.6p3/ntpd/ntp_io.c 2011-01-05 16:03:19.349001911 +0100 | |
15 | @@ -4549,10 +4549,7 @@ init_async_notifications() | |
a8809dbd ER |
16 | #ifdef HAVE_RTNETLINK |
17 | memset(&sa, 0, sizeof(sa)); | |
18 | sa.nl_family = PF_NETLINK; | |
19 | - sa.nl_groups = RTMGRP_LINK | RTMGRP_IPV4_IFADDR | |
20 | - | RTMGRP_IPV6_IFADDR | RTMGRP_IPV4_ROUTE | |
21 | - | RTMGRP_IPV4_MROUTE | RTMGRP_IPV6_ROUTE | |
22 | - | RTMGRP_IPV6_MROUTE; | |
23 | + sa.nl_groups = RTMGRP_IPV4_IFADDR | RTMGRP_IPV6_IFADDR; | |
24 | if (bind(fd, (struct sockaddr *)&sa, sizeof(sa)) < 0) { | |
25 | msyslog(LOG_ERR, | |
26 | "bind failed on routing socket (%m) - using polled interface update"); |