]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
ChangeLog, ntp_crypto.c, ntp_loopfilter.c, ntp_peer.c, ntp_proto.c:
authorHarlan Stenn <stenn@ntp.org>
Sat, 21 Apr 2001 01:55:49 +0000 (01:55 -0000)
committerHarlan Stenn <stenn@ntp.org>
Sat, 21 Apr 2001 01:55:49 +0000 (01:55 -0000)
  * ntpd/ntp_proto.c (receive): In the AM_NEWBCL case, return in all
  cases at the end.
  * ntpd/ntp_peer.c (newpeer): Check cast_flags against MDF_BCLNT,
  not against MDF_BCAST.
  * ntpd/ntp_loopfilter.c (local_clock): Lose debug info.
  * ntpd/ntp_crypto.c (crypto_recv): Bugfix.
  From: Dave Mills.

bk: 3ae0e8a5AlEUqt37dFS5FP1rb-3wWA

ChangeLog
ntpd/ntp_crypto.c
ntpd/ntp_loopfilter.c
ntpd/ntp_peer.c
ntpd/ntp_proto.c

index 3eebfbea0b82e3350a82f6c436cd52c4cdf04919..27fc62e908c7106a3099fdb1818c2591b66ff3cf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2001-04-20  Harlan Stenn  <stenn@whimsy.udel.edu>
 
+       * ntpd/ntp_proto.c (receive): In the AM_NEWBCL case, return in all
+       cases at the end.
+       * ntpd/ntp_peer.c (newpeer): Check cast_flags against MDF_BCLNT,
+       not against MDF_BCAST.
+       * ntpd/ntp_loopfilter.c (local_clock): Lose debug info.
+       * ntpd/ntp_crypto.c (crypto_recv): Bugfix.
+       From: Dave Mills.
+
        * configure.in: 4.0.99k27
 
        * ntpd/ntp_loopfilter.c (local_clock): Check clock_panic > 0.
index a01869de5956b645139a383e672eb72734836eb4..d8516b5ebbae6bf7eee4c9a8f0db44e073ca77e9 100644 (file)
@@ -384,10 +384,9 @@ crypto_recv(
                                rval = RV_LEN;
                        } else if (tstamp == 0) {
                                rval = RV_TSP;
-                       } else if (peer->crypto) {
-                               rval = RV_DUP;
                        } else {
-                               peer->crypto = temp;
+                               if (!peer->crypto)
+                                       peer->crypto = temp;
                                if (ntohl(pkt[i + 1]) != 0)
                                        peer->assoc = ntohl(pkt[i + 1]);
                                rval = RV_OK;
index 0683ce017ee6c200da573647b173251314da9e59..64aac8753cf83bf0f95b1335893f83056a90a89a 100644 (file)
@@ -599,9 +599,6 @@ local_clock(
        clock_stability = SQRT(dtemp + etemp / CLOCK_AVG);
        allan_xpt = max(CLOCK_ALLAN, clock_stability * CLOCK_ADF);
 
-printf("xxx %.3f %.3f\n", sys_jitter / ULOGTOD(sys_poll + 1) * 1e6,
-clock_stability * 1.5 * 1e6);
-
        /*
         * In SYNC state, adjust the poll interval.
         */
index 6dc6ac297181a1e410304484058589063972f48a..b1641817f1655223e24362bb5ecd8be3f57dddee 100644 (file)
@@ -530,10 +530,10 @@ newpeer(
         */
        if (ISREFCLOCKADR(srcadr))
                peer->dstadr = loopback_interface;
+       else if (cast_flags & MDF_BCLNT)
+               peer->dstadr = findbcastinter(srcadr);
        else if (dstadr != any_interface)
                peer->dstadr = dstadr;
-       else if (cast_flags & MDF_BCAST)
-               peer->dstadr = findbcastinter(srcadr);
        else
                peer->dstadr = findinterface(srcadr);
        peer->srcadr = *srcadr;
index 0cc7ebc991b06440b43c3faed3691f2edee36462..7a487d2e791b47b0e123a0f662f854a16b6cb341 100644 (file)
@@ -674,9 +674,7 @@ receive(
                    sys_minpoll, NTP_MAXDPOLL, FLAG_MCAST |
                    FLAG_IBURST | (sys_authenticate ?
                    FLAG_AUTHENABLE : 0), MDF_BCLNT, 0, skeyid);
-               if (peer == NULL)
-                       return;
-               break;
+               return;
 
        case AM_POSSBCL:
        case AM_PROCPKT: