[Git][NTPsec/ntpsec][master] Restore support for peer (MODE_ACTIVE) packets, Issue #482
Hal Murray
gitlab at mg.gitlab.com
Wed May 2 19:34:25 UTC 2018
Hal Murray pushed to branch master at NTPsec / ntpsec
Commits:
7f1a350a by Hal Murray at 2018-05-02T19:32:36Z
Restore support for peer (MODE_ACTIVE) packets, Issue #482
- - - - -
1 changed file:
- ntpd/ntp_proto.c
Changes:
=====================================
ntpd/ntp_proto.c
=====================================
--- a/ntpd/ntp_proto.c
+++ b/ntpd/ntp_proto.c
@@ -792,13 +792,12 @@ receive(
}
switch (PKT_MODE(rbufp->pkt.li_vn_mode)) {
- case MODE_CLIENT:
- /* Request for us as a server. */
+ case MODE_ACTIVE: /* remote site using "peer" in config file */
+ case MODE_CLIENT: /* Request for us as a server. */
handle_fastxmit(rbufp, restrict_mask, authenticated);
sys_processed++;
break;
- case MODE_SERVER:
- /* Reply to our request. */
+ case MODE_SERVER: /* Reply to our request. */
handle_procpkt(rbufp, peer);
sys_processed++;
peer->processed++;
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/7f1a350a6cb5a106dd56f627b3cc2615b5d1f9ef
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/7f1a350a6cb5a106dd56f627b3cc2615b5d1f9ef
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20180502/cfebf4e9/attachment.html>
More information about the vc
mailing list