Home
last modified time | relevance | path

Searched refs:refid (Results 1 – 25 of 84) sorted by relevance

1234

/freebsd/contrib/ntp/libntp/
H A Dnumtoa.c37 * Convert a refid & stratum to a string. If stratum is negative and the
38 * refid consists entirely of graphic chars, up to an optional
43 u_int32 refid, in refid_str()
53 * ntpd can have stratum = 0 and refid 127.0.0.1 in orphan mode. in refid_str()
54 * https://bugs.ntp.org/3854. Mirror the refid logic in timer(). in refid_str()
56 if (0 == stratum && LOOPBACKADR_N == refid) { in refid_str()
63 memcpy(&text[1], &refid, sizeof(refid)); in refid_str()
64 text[1 + sizeof(refid)] = '\0'; in refid_str()
71 * This refid i in refid_str()
40 refid_str(u_int32 refid,int stratum) refid_str() argument
[all...]
/freebsd/contrib/ntp/conf/
H A Drackety.conf14 fudge 127.127.4.0 refid GPS1 time1 -.000097 flag1 1
16 fudge 127.127.4.1 refid GPS2 time1 -.000097 flag1 1
19 fudge 127.127.4.2 refid WVB1 time1 .0021 flag4 1 flag1 1
22 fudge 127.127.4.3 refid WVB2 time1 .0021 flag4 1 flag1 1
H A Dpogo.conf6 fudge 127.127.6.1 refid GPS1 time1 -.002777 flag2 1
9 fudge 127.127.4.1 refid GPS2 time1 .000221
/freebsd/contrib/ntp/ntpd/
H A Drefclock_pst.c157 memcpy((char *)&pp->refid, WWVREFID, 4); in pst_start()
256 memcpy((char *)&pp->refid, WWVHREFID, 4); in pst_receive()
258 memcpy((char *)&pp->refid, WWVREFID, 4); in pst_receive()
260 peer->refid = pp->refid; in pst_receive()
H A Drefclock_tsyncpci.c352 * what our actual refid is yet. in tsync_start()
354 strncpy((char *)&pp->refid, TSYNC_REF_LOCAL, TSYNC_REF_LEN); in tsync_start()
726 strncpy((char *)&pp->refid, RefIdLookupTbl[j].pRefId, in tsync_poll()
728 peer->refid = pp->refid; in tsync_poll()
737 pp->refid = up->refId; in tsync_poll()
738 peer->refid = pp->refid; in tsync_poll()
748 strncpy((char *)&pp->refid, TSYNC_REF_LOCAL, TSYNC_REF_LEN); in tsync_poll()
749 peer->refid in tsync_poll()
[all...]
H A Drefclock_leitch.c112 static u_int32 refid[MAXUNITS]; variable
135 memcpy((char *)&refid[i], LEITCHREFID, 4); in leitch_init()
213 refid[unit] = in->fudgeval2; in leitch_control()
219 peer->refid = refid[unit]; in leitch_control()
228 out->fudgeval2 = refid[unit]; in leitch_control()
372 peer->refid = refid[unit]; in leitch_start()
H A Drefclock_acts.c268 memcpy(&pp->refid, REFID, 4); in acts_start()
781 memcpy(&pp->refid, REFACTS, 4); in acts_timecode()
805 memcpy(&pp->refid, REFUSNO, 4); in acts_timecode()
829 memcpy(&pp->refid, REFPTB, 4); in acts_timecode()
847 memcpy(&pp->refid, REFWWVB, 4); in acts_timecode()
868 memcpy(&pp->refid, REFWWVB, 4); in acts_timecode()
886 peer->refid = pp->refid; in acts_timecode()
H A Dntp_proto.c209 int kiss_code_check(u_char hisleap, u_char hisstratum, u_char hismode, u_int32 refid);
273 u_int32 refid in kiss_code_check() argument
280 if(memcmp(&refid,"RATE", 4) == 0) { in kiss_code_check()
282 } else if(memcmp(&refid,"DENY", 4) == 0) { in kiss_code_check()
284 } else if(memcmp(&refid,"RSTR", 4) == 0) { in kiss_code_check()
286 } else if(memcmp(&refid,"X", 1) == 0) { in kiss_code_check()
1330 pkt->refid, in receive()
1380 || rbufp->dstadr->addr_refid == pkt->refid in receive()
1383 &&rbufp->dstadr->old_refid == pkt->refid) in receive()
1386 …#x\n", sys_leap, sys_stratum, hisstratum + 1, !sys_cohort, rbufp->dstadr->addr_refid, pkt->refid)); in receive()
[all …]
H A Drefclock_wwv.c496 char refid[5]; /* reference identifier */ member
1356 up->status, up->gain, sp->refid, in wwv_qrz()
1864 sp->refid, sp->reach & 0xffff, in wwv_rsec()
1866 rp->refid, rp->reach & 0xffff, in wwv_rsec()
2451 memcpy(&pp->refid, sp->refid, 4); in wwv_newchan()
2452 peer->refid = pp->refid; in wwv_newchan()
2502 * NOTINSYNC and the refid "NONE". in wwv_newgame()
2523 snprintf(cp->wwv.refid, sizeo in wwv_newgame()
[all...]
H A Drefclock_arc.c732 memcpy((char *)&pp->refid, REFID_MSF, 4); in arc_start()
735 memcpy((char *)&pp->refid, REFID_DCF77, 4); in arc_start()
738 memcpy((char *)&pp->refid, REFID_WWVB, 4); in arc_start()
741 memcpy((char *)&pp->refid, REFID, 4); in arc_start()
H A Drefclock_local.c124 memcpy(&pp->refid, "LOCL", 4); in local_start()
H A Drefclock_atom.c134 memcpy((char *)&pp->refid, REFID, 4); in atom_start()
H A Dntp_refclock.c297 peer->refid = pp->refid; in refclock_newpeer()
1290 peer->refid = pp->refid = in->fudgeval2; in refclock_control()
1316 out->fudgeval2 = pp->refid; in refclock_control()
H A Drefclock_hopfpci.c153 memcpy((char *)&pp->refid, REFID, 4); in hopfpci_start()
/freebsd/usr.sbin/ntp/scripts/
H A Dntptrace30 $refid = $1 if (/refid=([^\s,]+)/);
46 printf(", refid '%s'", $refid) if ($stratum == 1);
49 last if ($refid =~ /^127\.127\.\d{1,3}\.\d{1,3}$/);
/freebsd/contrib/tcpdump/
H A Dprint-ntp.c101 nd_uint32_t refid; member
251 ND_TCHECK_4(bp->refid); in ntp_time_print()
261 if (nd_printn(ndo, (const u_char *)&(bp->refid), 4, ndo->ndo_snapend)) in ntp_time_print()
266 ND_PRINT("%s INFO_QUERY", GET_IPADDR_STRING(bp->refid)); in ntp_time_print()
271 ND_PRINT("%s INFO_REPLY", GET_IPADDR_STRING(bp->refid)); in ntp_time_print()
278 ND_PRINT("0x%08x", GET_BE_U_4(bp->refid)); in ntp_time_print()
/freebsd/contrib/ntp/
H A Dresults.y2kfixes11 timemaster.att.com: stratum 1, offset -0.004876, synch distance 0.03485, refid 'GPS'
22 timemaster.att.com: stratum 1, offset -0.006355, synch distance 0.04178, refid 'GPS'
33 timemaster.att.com: stratum 1, offset -0.010803, synch distance 0.03078, refid 'GPS'
44 timemaster.att.com: stratum 1, offset -0.013598, synch distance 0.03116, refid 'GPS'
H A DREADME.leapsmear75 a specially-formatted 'refid' in time packets that contain "smeared" time.
76 This refid is of the form 254.x.y.z, where x.y.z are 24 encoded bits of the
83 the refid, one can also determine if the server is offering smeared time or
177 system time at all. Only the timestamps and refid in outgoing reply packets
181 the normal refid, as usual.
260 precision=-18, rootdelay=0.000, rootdisp=1.075, refid=MRS,
271 leapsmearoffset of -.932087, the refid reported in smeared packets would be
/freebsd/contrib/ntp/scripts/ntptrace/
H A Dntptrace.in39 printf ", refid '%s'", $info{refid} if $info{stratum} == 1;
44 last if $info{refid} =~ /^127\.127\.\d{1,3}\.\d{1,3}$/;
/freebsd/contrib/ntp/scripts/monitoring/
H A Dntptrap360 ($refid) = ($data =~ /refid=([\w\.]+)/);
361 $msg .= "stratum=$stratum refid=$refid";
362 if ($refid =~ /\[?(\d+)\.(\d+)\.(\d+)\.(\d+)/)
/freebsd/contrib/ntp/sntp/tests/
H A DpacketProcessing.c107 memcpy(&testpkt.p.refid, "GPS\0", 4); in setUp()
342 memcpy(&testpkt.p.refid, "RATE", 4);
356 memcpy(&testpkt.p.refid, "DENY", 4);
/freebsd/contrib/ntp/ntpdate/
H A Dntpdate.h26 u_int32 refid; /* peer reference ID */ member
H A Dntpdate.c700 xpkt.refid = htonl(NTPDATE_REFID); in transmit()
842 !memcmp("RATE", &rpkt->refid, 4)) { in receive()
858 server->refid = rpkt->refid; in receive()
2177 str = (char *) &pp->refid; in print_server()
2184 str = numtoa(pp->refid); in print_server()
/freebsd/contrib/ntp/ntpq/
H A Dinvoke-ntpq.texi307 [tally]remote refid assid st t when pool reach delay offset jitter
312 @code{refid}
488 @code{refid}.
497 [tally]remote refid st t when pool reach delay offset jitter
515 @item @code{refid}
712 @item @code{refid}
801 @item @code{refid}
906 @item @code{refid}
925 * ntpq refid:: refid optio
[all...]
/freebsd/contrib/ntp/sntp/
H A Dnetworking.h61 u_int32 refid; member

1234