Lines Matching refs:peer

208     This avoids ntpd syncing to another peer first and then
532 static void dummy_event_handler (struct peer *);
533 static void arc_event_handler (struct peer *);
544 static int arc_start (int, struct peer *);
545 static void arc_shutdown (int, struct peer *);
547 static void arc_poll (int, struct peer *);
565 peer->procptr->nextaction = current_time + QUEUETICK; \
571 struct peer *peer
592 struct peer *peer
595 struct refclockproc *pp = peer->procptr;
627 struct peer *peer
704 pp = peer->procptr;
706 pp->io.srcclock = peer;
720 peer->precision = PRECISION;
721 peer->stratum = 2; /* Default to stratum 2 not 0. */
723 if (peer->MODE > 3) {
724 msyslog(LOG_NOTICE, "ARCRON: Invalid mode %d", peer->MODE);
728 if(debug) { printf("arc: mode = %d.\n", peer->MODE); }
730 switch (peer->MODE) {
763 peer->procptr->action = arc_event_handler;
777 struct peer *peer
783 peer->procptr->action = dummy_event_handler;
785 pp = peer->procptr;
875 struct peer *peer;
886 peer = rbufp->recv_peer;
887 pp = peer->procptr;
968 refclock_report(peer, CEVNT_BADREPLY);
1124 refclock_report(peer, CEVNT_BADREPLY);
1143 refclock_report(peer, CEVNT_BADREPLY);
1178 refclock_report(peer, CEVNT_BADREPLY);
1201 refclock_report(peer, CEVNT_BADREPLY);
1206 if(peer->MODE == 0) { /* compatiblity to original version */
1211 refclock_report(peer, CEVNT_BADREPLY);
1257 refclock_report(peer, CEVNT_FAULT);
1263 if (peer->MODE == 0) { /* compatiblity to original version */
1280 refclock_report(peer, CEVNT_BADTIME);
1287 if(peer->MODE > 0) {
1307 switch (peer->MODE) {
1352 peer->MODE);
1360 refclock_report (peer, CEVNT_FAULT);
1387 if (peer->MODE == 0) { /* compatiblity to original version */
1391 peer->precision = PRECISION;
1393 peer->precision = ((pp->sloppyclockflag & CLK_FLAG3) ?
1398 peer->precision = ((pp->sloppyclockflag & CLK_FLAG3) ?
1401 peer->precision = PRECISION;
1403 peer->precision = ((pp->sloppyclockflag & CLK_FLAG3) ?
1418 printf("arc: PRECISION = %d.\n", peer->precision);
1446 refclock_report(peer, CEVNT_BADTIME);
1449 record_clock_stats(&peer->srcadr, pp->a_lastcode);
1450 refclock_receive(peer);
1454 /* request_time() sends a time request to the clock with given peer. */
1457 static void request_time (int, struct peer *);
1461 struct peer *peer
1464 struct refclockproc *pp = peer->procptr;
1476 refclock_report(peer, CEVNT_FAULT);
1488 struct peer *peer
1495 pp = peer->procptr;
1578 refclock_report(peer, CEVNT_FAULT);
1582 request_time(unit, peer);