Commit 8e3daaf0 authored by Hal Murray's avatar Hal Murray

Make auth column from ntpq assoc work for NTS.

parent 622755a5
Pipeline #72079163 passed with stage
in 13 minutes and 2 seconds
......@@ -874,7 +874,7 @@ ctlpeerstatus(
status = p->status;
if (FLAG_CONFIG & p->cfg.flags)
status |= CTL_PST_CONFIG;
if (p->cfg.peerkey)
if ((p->cfg.peerkey) || (FLAG_NTS & p->cfg.flags))
status |= CTL_PST_AUTHENABLE;
if (FLAG_AUTHENTIC & p->cfg.flags)
status |= CTL_PST_AUTHENTIC;
......
......@@ -691,12 +691,6 @@ receive(
}
}
if (peer != NULL) {
peer->received++;
peer->cfg.flags |= FLAG_AUTHENTIC;
peer->timereceived = current_time;
}
switch (PKT_MODE(rbufp->pkt.li_vn_mode)) {
case MODE_ACTIVE: /* remote site using "peer" in config file */
case MODE_CLIENT: /* Request for us as a server. */
......@@ -722,6 +716,9 @@ receive(
maybe_log_junk(rbufp);
break;
}
peer->received++;
peer->cfg.flags |= FLAG_AUTHENTIC;
peer->timereceived = current_time;
handle_procpkt(rbufp, peer);
stat_count.sys_processed++;
peer->processed++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment