]> git.pld-linux.org Git - packages/ntp.git/blob - ntp-4.2.6p1-rtnetlink.patch
- up to 4.2.8p15
[packages/ntp.git] / ntp-4.2.6p1-rtnetlink.patch
1 diff -urNp -x '*.orig' ntp-4.2.8p12.org/ntpd/ntp_io.c ntp-4.2.8p12/ntpd/ntp_io.c
2 --- ntp-4.2.8p12.org/ntpd/ntp_io.c      2021-10-15 23:43:02.012145954 +0200
3 +++ ntp-4.2.8p12/ntpd/ntp_io.c  2021-10-15 23:43:02.175478857 +0200
4 @@ -4832,10 +4832,7 @@ init_async_notifications()
5  #ifdef HAVE_RTNETLINK
6         ZERO(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");
This page took 0.066853 seconds and 3 git commands to generate.