]> git.pld-linux.org Git - packages/ntp.git/blob - ntp-4.2.6p1-rtnetlink.patch
- proper filename
[packages/ntp.git] / ntp-4.2.6p1-rtnetlink.patch
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
5  /* end confdefs.h.  */
6  
7                 #include <stddef.h>
8 +               #include <sys/socket.h>
9                 #include <linux/rtnetlink.h>
10  
11  int
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()
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");
This page took 0.074554 seconds and 3 git commands to generate.