Home
last modified time | relevance | path

Searched refs:stratum (Results 1 – 25 of 68) sorted by relevance

123

/freebsd-14.2/usr.sbin/ntp/scripts/
H A Dntptrace21 $stratum = 255;
25 $stratum = $1 if (/stratum=(\d+)/);
33 last if ($stratum == 255);
45 $dhost, $stratum, $offset, $rootdelay);
46 printf(", refid '%s'", $refid) if ($stratum == 1);
48 last if ($stratum == 0 || $stratum == 1 || $stratum == 16);
/freebsd-14.2/contrib/ntp/ntpd/
H A Drefclock_local.c121 peer->stratum = STRATUM; in local_start()
122 pp->stratum = STRATUM; in local_start()
188 peer->stratum = pp->stratum; in local_poll()
193 peer->stratum = pp->stratum; in local_poll()
198 peer->stratum = pp->stratum; in local_poll()
203 peer->stratum = STRATUM_UNSPEC; in local_poll()
H A Drefclock_tsyncpci.c699 pp->stratum = STRATUM_UNSPEC; in tsync_poll()
700 peer->stratum = pp->stratum; in tsync_poll()
706 up->refStratum = sys_peer->stratum; in tsync_poll()
721 pp->stratum = TSYNC_LCL_STRATUM; in tsync_poll()
722 peer->stratum = pp->stratum; in tsync_poll()
741 pp->stratum = up->refStratum; in tsync_poll()
742 peer->stratum = pp->stratum; in tsync_poll()
H A Dntp_proto.c1325 PKT_TO_STRATUM(pkt->stratum), in receive()
1414 PKT_TO_STRATUM(pkt->stratum), in receive()
2588 pstratum = PKT_TO_STRATUM(pkt->stratum); in process_packet()
2918 || peer->stratum == STRATUM_UNSPEC) in clock_update()
3290 peer->stratum = STRATUM_UNSPEC; in peer_clear()
3630 if (peer->stratum == sys_orphan) { in clock_select()
3657 if (peer->stratum > sys_orphan) { in clock_select()
3960 peer->stratum * sys_mindisp; in clock_select()
4643 xpkt.stratum = STRATUM_PKT_UNSPEC; in fast_xmit()
5130 || peer->stratum < sys_floor in peer_unfit()
[all …]
/freebsd-14.2/contrib/ntp/
H A Dresults.y2kfixes10 timelord.att.com: stratum 2, offset -0.000879, synch distance 0.07207
11 timemaster.att.com: stratum 1, offset -0.004876, synch distance 0.03485, refid 'GPS'
21 timelord.att.com: stratum 2, offset 0.001383, synch distance 0.05644
22 timemaster.att.com: stratum 1, offset -0.006355, synch distance 0.04178, refid 'GPS'
32 timelord.att.com: stratum 2, offset -0.000094, synch distance 0.06522
33 timemaster.att.com: stratum 1, offset -0.010803, synch distance 0.03078, refid 'GPS'
43 timelord.att.com: stratum 2, offset -0.000719, synch distance 0.06561
54 fudge 127.127.1.0 stratum 0
59 server 135.16.xxxx.xxxx stratum 1, offset 0.000033, delay 0.02975
64 server 135.16.xxxx.xxxx stratum 1, offset 0.000019, delay 0.02504
[all …]
/freebsd-14.2/contrib/ntp/libntp/
H A Dnumtoa.c44 int stratum in refid_str() argument
56 if (0 == stratum && LOOPBACKADR_N == refid) { in refid_str()
60 if (stratum < 2) { in refid_str()
82 if ( (stratum < 0 && printable) in refid_str()
83 || stratum < 2) { in refid_str()
/freebsd-14.2/contrib/ntp/scripts/ntptrace/
H A Dntptrace.in38 $dhost, $info{stratum}, $info{offset}, $info{syncdistance};
39 printf ", refid '%s'", $info{refid} if $info{stratum} == 1;
42 last if $info{stratum} == 0 || $info{stratum} == 1 ||
43 $info{stratum} == 16;
62 return if not exists $info->{stratum};
H A Dntptrace-opts.def55 % ntptrace localhost: stratum 4, offset 0.0019529, synch distance 0.144135
56 server2ozo.com: stratum 2, offset 0.0124263, synch distance 0.115784 usndh.edu:
57 stratum 1, offset 0.0019298, synch distance 0.011993, refid 'WWVB'
60 On each line, the fields are (left to right): the host name, the host stratum,
63 synchronization distance, and (only for stratum-1 servers) the reference clock
64 ID. All times are given in seconds. Note that the stratum is the server hop
H A Dinvoke-ntptrace.texi23 % ntptrace localhost: stratum 4, offset 0.0019529, synch distance 0.144135
24 server2ozo.com: stratum 2, offset 0.0124263, synch distance 0.115784 usndh.edu:
25 stratum 1, offset 0.0019298, synch distance 0.011993, refid 'WWVB'
28 On each line, the fields are (left to right): the host name, the host stratum,
31 synchronization distance, and (only for stratum-1 servers) the reference clock
32 ID. All times are given in seconds. Note that the stratum is the server hop
/freebsd-14.2/contrib/ntp/scripts/deprecated/
H A Dntp-groper75 stratum=`fgrep "stratum=" $ntpqlog`
78 stratum=`expr "$stratum" : '.*stratum=\([^,]*\),.*'`
80 echo "$host answers NTP version $version, stratum: $stratum, ref: $synchost"
/freebsd-14.2/contrib/tcpdump/
H A Dprint-ntp.c96 nd_uint8_t stratum; /* Stratum level */ member
228 uint8_t stratum; in ntp_time_print() local
233 stratum = GET_U_1(bp->stratum); in ntp_time_print()
235 stratum, in ntp_time_print()
236 …tok2str(ntp_stratum_values, (stratum >=2 && stratum<=15) ? "secondary reference" : "reserved", str… in ntp_time_print()
254 switch (stratum) { in ntp_time_print()
/freebsd-14.2/contrib/ntp/scripts/ntpsweep/
H A Dntpsweep.in101 my $stratum = 0;
113 ($offset, $stratum) = ntp_sntp_line($host);
116 if ($stratum) {
153 if ($stratum) {
155 $stratum, $offset, (substr $daemonversion, 0, 11),
165 if ($stratum || $known_host) { # Valid or known host
/freebsd-14.2/contrib/ntp/scripts/lib/NTP/
H A DUtil.pm135 my ($offset, $stratum);
144 $stratum = $1;
147 $stratum = $1;
152 return ($offset, $stratum);
/freebsd-14.2/contrib/ntp/ntpdate/
H A Dntpdate.c783 || rpkt->stratum >= STRATUM_UNSPEC) { in receive()
854 server->stratum = PKT_TO_STRATUM(rpkt->stratum); in receive()
1065 if (server->stratum == 0) { in clock_select()
1070 if (server->stratum > NTP_INFIN) { in clock_select()
1112 if (server->stratum <= server_list[i]->stratum) in clock_select()
1115 if (server->stratum < server_list[i]->stratum) in clock_select()
1146 if (server_list[i]->stratum > server_list[i-1]->stratum) { in clock_select()
1172 if (server_list[i]->stratum < in clock_select()
1173 server_list[j]->stratum) in clock_select()
2171 pp->stratum, pp->precision, in print_server()
[all …]
H A Dntpdate.h21 u_char stratum; /* stratum of remote server */ member
/freebsd-14.2/contrib/ntp/scripts/monitoring/
H A Dntptrap359 ($stratum) = ($data =~ /stratum=(\d+)/);
361 $msg .= "stratum=$stratum refid=$refid";
423 ($stratum) = ($data =~ /stratum=(\d+)/);
424 $msg .= "new stratum $stratum";
/freebsd-14.2/contrib/ntp/sntp/
H A Dnetworking.c239 PKT_MODE(rpkt->li_vn_mode), rpkt->stratum); in process_pkt()
243 if (STRATUM_PKT_UNSPEC == rpkt->stratum) { in process_pkt()
247 func_name, rpkt->stratum)); in process_pkt()
H A Dmain.c1138 x_pkt->stratum = STRATUM_TO_PKT(STRATUM_UNSPEC); in generate_pkt()
1176 int stratum; in handle_pkt() local
1260 stratum = rpkt->stratum; in handle_pkt()
1261 if (0 == stratum) in handle_pkt()
1262 stratum = 16; in handle_pkt()
1295 hostnameaddr(hostname, host), stratum, in handle_pkt()
H A Dnetworking.h58 u_char stratum; member
/freebsd-14.2/contrib/ntp/scripts/
H A DREADME18 ntpsweep prints per host given in <file> the NTP stratum level, the
22 ntptrace Trace ntp peers of a server up to stratum 1.
/freebsd-14.2/contrib/ntp/sntp/tests/
H A DpacketProcessing.c106 testpkt.p.stratum = STRATUM_REFCLOCK; in setUp()
341 testpkt.p.stratum = STRATUM_PKT_UNSPEC; in test_KoDRate()
355 testpkt.p.stratum = STRATUM_PKT_UNSPEC; in test_KoDDeny()
H A DpacketHandling.c63 TEST_ASSERT_EQUAL(STRATUM_UNSPEC, PKT_TO_STRATUM(testpkt.stratum)); in test_GenerateUnauthenticatedPacket()
110 TEST_ASSERT_EQUAL(STRATUM_UNSPEC, PKT_TO_STRATUM(testpkt.stratum)); in test_GenerateAuthenticatedPacket()
/freebsd-14.2/contrib/ntp/ntpsnmpd/
H A Dntpv4-mib.mib103 "The NTP stratum, with 16 representing no stratum."
185 (stratum 0) source including the unit, e.g., '13.243 ms'."
209 source (stratum = 16).
212 (stratum = 16).
228 "The NTP entity's own stratum value. Should be a stratum of
559 "The association stratum value."
728 "The notification to be sent when stratum level of NTP changes."
/freebsd-14.2/contrib/bsnmp/snmp_ntp/
H A DNTP-MIB.txt95 " indicating the stratum of the local clock.
139 stratum 0 (unspecified) or stratum 1 (primary reference
141 ASCII string.In the case of stratum 2 and greater (secondary
371 " indicating the stratum of the peer clock.
/freebsd-14.2/contrib/ntp/ntpdc/
H A Dlayout.std48 offsetof(stratum) = 10
70 offsetof(stratum) = 14
152 offsetof(stratum) = 6

123