[Midnightbsd-cvs] mports [17922] trunk/net/ntp/files/patch-ntpd__refclock__mx4200.c: add patchset
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Tue Dec 23 08:13:46 EST 2014
Revision: 17922
http://svnweb.midnightbsd.org/mports/?rev=17922
Author: laffer1
Date: 2014-12-23 08:13:45 -0500 (Tue, 23 Dec 2014)
Log Message:
-----------
add patchset
Added Paths:
-----------
trunk/net/ntp/files/patch-ntpd__ntp_io.c
trunk/net/ntp/files/patch-ntpd__refclock__mx4200.c
Property Changed:
----------------
trunk/net/ntp/Makefile.inc
Index: trunk/net/ntp/Makefile.inc
===================================================================
--- trunk/net/ntp/Makefile.inc 2014-12-23 13:13:02 UTC (rev 17921)
+++ trunk/net/ntp/Makefile.inc 2014-12-23 13:13:45 UTC (rev 17922)
Property changes on: trunk/net/ntp/Makefile.inc
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: trunk/net/ntp/files/patch-ntpd__ntp_io.c
===================================================================
--- trunk/net/ntp/files/patch-ntpd__ntp_io.c (rev 0)
+++ trunk/net/ntp/files/patch-ntpd__ntp_io.c 2014-12-23 13:13:45 UTC (rev 17922)
@@ -0,0 +1,22 @@
+--- ntpd/ntp_io.c.orig 2014-12-19 03:56:55.000000000 -0800
++++ ntpd/ntp_io.c 2014-12-21 22:36:02.977441698 -0800
+@@ -3454,15 +3454,15 @@
+ if (AF_INET6 == itf->family) {
+ DPRINTF(1, ("Got an IPv6 packet, from <%s> (%d) to <%s> (%d)\n",
+ stoa(&rb->recv_srcadr),
+- IN6_IS_ADDR_LOOPBACK(&rb->recv_srcadr),
++ IN6_IS_ADDR_LOOPBACK(&rb->recv_srcadr.sa6.sin6_addr),
+ stoa(&itf->sin),
+- !IN6_IS_ADDR_LOOPBACK(&itf->sin)
++ !IN6_IS_ADDR_LOOPBACK(&itf->sin.sa6.sin6_addr)
+ ));
+ }
+
+ if ( AF_INET6 == itf->family
+- && IN6_IS_ADDR_LOOPBACK(&rb->recv_srcadr)
+- && !IN6_IS_ADDR_LOOPBACK(&itf->sin)
++ && IN6_IS_ADDR_LOOPBACK(&rb->recv_srcadr.sa6.sin6_addr)
++ && !IN6_IS_ADDR_LOOPBACK(&itf->sin.sa6.sin6_addr)
+ ) {
+ packets_dropped++;
+ DPRINTF(1, ("DROPPING that packet\n"));
Property changes on: trunk/net/ntp/files/patch-ntpd__ntp_io.c
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/net/ntp/files/patch-ntpd__refclock__mx4200.c
===================================================================
--- trunk/net/ntp/files/patch-ntpd__refclock__mx4200.c (rev 0)
+++ trunk/net/ntp/files/patch-ntpd__refclock__mx4200.c 2014-12-23 13:13:45 UTC (rev 17922)
@@ -0,0 +1,25 @@
+--- ntpd/refclock_mx4200.c.orig 2014-12-19 11:56:52 UTC
++++ ntpd/refclock_mx4200.c
+@@ -1572,7 +1572,7 @@ mx4200_debug(struct peer *peer, char *fm
+ * Print debug message to stdout
+ * In the future, we may want to get get more creative...
+ */
+- mvprintf(fmt, ap);
++ vprintf(fmt, ap);
+
+ va_end(ap);
+ }
+@@ -1613,11 +1613,11 @@ mx4200_send(peer, fmt, va_alist)
+
+ cp = buf;
+ *cp++ = '$';
+- n = VSNPRINTF((cp, sizeof(buf) - 1, fmt, ap));
++ n = vsnprintf(cp, sizeof(buf) - 1, fmt, ap);
+ ck = mx4200_cksum(cp, n);
+ cp += n;
+ ++n;
+- n += SNPRINTF((cp, sizeof(buf) - n - 5, "*%02X\r\n", ck));
++ n += snprintf(cp, sizeof(buf) - n - 5, "*%02X\r\n", ck);
+
+ m = write(pp->io.fd, buf, (unsigned)n);
+ if (m < 0)
Property changes on: trunk/net/ntp/files/patch-ntpd__refclock__mx4200.c
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list