View | Details | Raw Unified | Return to bug 210056 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (working copy) (-2 / +1 lines)
Lines 1-8 Link Here
1
# $FreeBSD$
1
# $FreeBSD$
2
2
3
PORTNAME=      openntpd
3
PORTNAME=      openntpd
4
PORTVERSION=   5.9p1
4
PORTVERSION=   6.0p1
5
PORTREVISION=  1
6
PORTEPOCH=     2
5
PORTEPOCH=     2
7
CATEGORIES=    net
6
CATEGORIES=    net
8
MASTER_SITES=  OPENBSD/OpenNTPD
7
MASTER_SITES=  OPENBSD/OpenNTPD
(-)distinfo (working copy) (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (openntpd-5.9p1.tar.gz) = 200c04056d4d6441653cac71d515611f3903aa7b15b8f5661a40dab3fb3697b3
1
TIMESTAMP = 1465146723
2
SIZE (openntpd-5.9p1.tar.gz) = 432844
2
SHA256 (openntpd-6.0p1.tar.gz) = b1ab80094788912adb12b33cb1f251cc58db39294c1b5c6376972f5f7ba577e8
3
SIZE (openntpd-6.0p1.tar.gz) = 432696
(-)files/patch-include_signal.h (working copy) (-4 / +4 lines)
Lines 1-8 Link Here
1
--- include/signal.h.orig      2015-05-04 09:54:32 UTC
1
--- include/signal.h.orig      2016-05-17 12:40:21 UTC
2
+++ include/signal.h
2
+++ include/signal.h
3
@@ -8,3 +8,7 @@
3
@@ -12,3 +12,7 @@
4
 #ifndef SIGINFO
4
 #ifndef _NSIG
5
 #define SIGINFO SIGUSR1
5
 #define _NSIG NSIG
6
 #endif
6
 #endif
7
+
7
+
8
+#ifndef _NSIG
8
+#ifndef _NSIG
(-)files/patch-src_constraint.c (working copy) (-11 lines)
Lines 1-11 Link Here
1
--- src/constraint.c.orig      2016-03-28 13:51:51 UTC
2
+++ src/constraint.c
3
@@ -905,7 +905,7 @@ httpsdate_request(struct httpsdate *http
4
                * or ANSI C's asctime() - the latter doesn't include
5
                * the timezone which is required here.
6
                */
7
-              if (strptime(p, "%a, %d %h %Y %T %Z",
8
+              if (strptime(p, "%a, %d %h %Y %T GMT",
9
                   &httpsdate->tls_tm) == NULL) {
10
                       log_warnx("unsupported date format");
11
                       free(line);
(-)files/patch-src_ntpd.8 (working copy) (-1 / +1 lines)
Lines 1-4 Link Here
1
--- src/ntpd.8.orig    2016-03-28 13:51:51 UTC
1
--- src/ntpd.8.orig    2016-05-30 22:50:02 UTC
2
+++ src/ntpd.8
2
+++ src/ntpd.8
3
@@ -56,7 +56,7 @@ Use
3
@@ -56,7 +56,7 @@ Use
4
 .Ar file
4
 .Ar file
(-)files/patch-src_ntpd.conf.5 (working copy) (-1 / +1 lines)
Lines 1-4 Link Here
1
--- src/ntpd.conf.5.orig       2016-03-28 13:51:51 UTC
1
--- src/ntpd.conf.5.orig       2016-05-30 22:50:02 UTC
2
+++ src/ntpd.conf.5
2
+++ src/ntpd.conf.5
3
@@ -218,8 +218,8 @@ constraints from "https://www.google.com
3
@@ -218,8 +218,8 @@ constraints from "https://www.google.com
4
 .Ed
4
 .Ed
(-)files/patch-src_server.c (working copy) (-33 / +6 lines)
Lines 1-16 Link Here
1
--- src/server.c.orig  2016-03-28 13:51:51 UTC
1
--- src/server.c.orig  2016-06-05 17:14:25 UTC
2
+++ src/server.c
2
+++ src/server.c
3
@@ -36,14 +36,14 @@ setup_listeners(struct servent *se, stru
3
@@ -36,7 +36,7 @@ setup_listeners(struct servent *se, stru
4
       struct ifaddrs          *ifa, *ifap;
4
       struct ifaddrs          *ifa, *ifap;
5
       struct sockaddr         *sa;
5
       struct sockaddr         *sa;
6
 #ifdef SO_RTABLE
6
 #ifdef SO_RTABLE
7
-      struct if_data          *ifd;
7
-      struct if_data          *ifd;
8
+      struct ifreq             ifr;
8
+      struct ifreq             ifr;
9
 #endif
9
 #endif
10
       u_int8_t                *a6;
10
       u_int8_t                *a6;
11
       size_t                   sa6len = sizeof(struct in6_addr);
11
       size_t                   sa6len = sizeof(struct in6_addr);
12
       u_int                    new_cnt = 0;
12
@@ -46,7 +46,7 @@ setup_listeners(struct servent *se, stru
13
       int                      tos = IPTOS_LOWDELAY;
13
       int                      on = 1;
14
 #endif
14
 #ifdef SO_RTABLE
15
 #ifdef SO_RTABLE
15
-      int                      rdomain = 0;
16
-      int                      rdomain = 0;
16
+      int                      rdomain, fd;
17
+      int                      rdomain, fd;
Lines 17-47 Link Here
17
 #endif
18
 #endif
18
 
19
 
19
       TAILQ_FOREACH(lap, &lconf->listen_addrs, entry) {
20
       TAILQ_FOREACH(lap, &lconf->listen_addrs, entry) {
20
@@ -56,16 +56,21 @@ setup_listeners(struct servent *se, stru
21
                               sa = ifap->ifa_addr;
22
                               if (sa == NULL || SA_LEN(sa) == 0)
23
                                       continue;
24
-#ifdef SO_RTABLE
25
-                              if (sa->sa_family == AF_LINK) {
26
-                                      ifd = ifap->ifa_data;
27
-                                      rdomain = ifd->ifi_rdomain;
28
-                              }
29
-#endif
30
                               if (sa->sa_family != AF_INET &&
31
                                   sa->sa_family != AF_INET6)
32
                                       continue;
33
 #ifdef SO_RTABLE
34
+                              strlcpy(ifr.ifr_name, ifap->ifa_name,
35
+                                  sizeof(ifr.ifr_name));
36
+
37
+                              fd = socket(AF_INET, SOCK_DGRAM, 0);
38
+                              if (ioctl(fd, SIOCGIFRDOMAIN,
39
+                                  (caddr_t)&ifr) == -1)
40
+                                      rdomain = 0;
41
+                              else
42
+                                      rdomain = ifr.ifr_rdomainid;
43
+                              close(fd);
44
+
45
                               if (lap->rtable != -1 && rdomain != lap->rtable)
46
                                       continue;
47
 #endif

Return to bug 210056