/freebsd/usr.sbin/ntp/scripts/ |
H A D | ntptrace | 21 $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/contrib/ntp/ntpd/ |
H A D | refclock_local.c | 47 * case the stratum should be set at zero, indicating a bona fide 48 * stratum-1 source. Exercise some caution with this, since there is no 65 #define STRATUM 5 /* default stratum */ 121 peer->stratum = STRATUM; in local_start() 122 pp->stratum = STRATUM; in local_start() 136 * bits are set to 11 and the stratum is set to infinity. Otherwise, the 137 * NTP leap bits are set to the kernel leap bits and the stratum is set 188 peer->stratum = pp->stratum; in local_poll() 193 peer->stratum in local_poll() [all...] |
H A D | refclock_tsyncpci.c | 249 uint8_t refStratum; // Host peer reference stratum 344 // Initialize reference stratum level and ID in tsync_start() 698 // Set reference clock stratum level as unusable in tsync_poll() 699 pp->stratum = STRATUM_UNSPEC; in tsync_poll() 700 peer->stratum = pp->stratum; in tsync_poll() 705 // Store reference peer stratum level and ID in tsync_poll() 706 up->refStratum = sys_peer->stratum; in tsync_poll() 715 // Store reference stratum as local clock in tsync_poll() 720 // Set reference clock stratum leve in tsync_poll() [all...] |
H A D | ntp_proto.c | 739 hisstratum = PKT_TO_STRATUM(pkt->stratum); in receive() 1325 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() 2629 peer->stratum = min(pstratum, STRATUM_UNSPEC); in process_packet() 2916 sys_stratum = min(peer->stratum + 1, STRATUM_UNSPEC); in clock_update() 2917 if ( peer->stratum == STRATUM_REFCLOCK in clock_update() 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() [all …]
|
/freebsd/contrib/ntp/ |
H A D | results.y2kfixes | 10 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 44 timemaster.att.com: stratum 1, offset -0.013598, synch distance 0.03116, refid 'GPS' 54 fudge 127.127.1.0 stratum 0 59 server 135.16.xxxx.xxxx stratum 1, offset 0.000033, delay 0.02975 [all …]
|
/freebsd/contrib/ntp/scripts/ntptrace/ |
H A D | ntptrace.in | 37 printf "%s: stratum %d, offset %f, synch distance %f", 38 $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 D | ntptrace-opts.def | 55 % 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 D | invoke-ntptrace.texi | 23 % 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/contrib/ntp/scripts/deprecated/ |
H A D | ntp-groper | 75 stratum=`fgrep "stratum=" $ntpqlog` 78 stratum=`expr "$stratum" : '.*stratum=\([^,]*\),.*'` 80 echo "$host answers NTP version $version, stratum: $stratum, ref: $synchost"
|
/freebsd/contrib/tcpdump/ |
H A D | print-ntp.c | 96 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/contrib/ntp/scripts/ntpsweep/ |
H A D | ntpsweep.in | 101 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/contrib/ntp/scripts/lib/NTP/ |
H A D | Util.pm | 135 my ($offset, $stratum); 144 $stratum = $1; 147 $stratum = $1; 152 return ($offset, $stratum);
|
/freebsd/contrib/ntp/ntpdate/ |
H A D | ntpdate.c | 695 xpkt.stratum = STRATUM_TO_PKT(STRATUM_UNSPEC); in transmit() 783 || rpkt->stratum >= STRATUM_UNSPEC) { in receive() 786 PKT_MODE(rpkt->li_vn_mode), rpkt->stratum); in receive() 841 STRATUM_PKT_UNSPEC == rpkt->stratum && 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() [all …]
|
H A D | ntpdate.h | 21 u_char stratum; /* stratum of remote server */ member
|
/freebsd/contrib/ntp/scripts/monitoring/ |
H A D | ntptrap | 359 ($stratum) = ($data =~ /stratum=(\d+)/); 361 $msg .= "stratum=$stratum refid=$refid"; 423 ($stratum) = ($data =~ /stratum=(\d+)/); 424 $msg .= "new stratum $stratum";
|
/freebsd/contrib/ntp/libntp/ |
H A D | numtoa.c | 37 * Convert a refid & stratum to a string. If stratum is negative and the 39 * terminating zero, display as text similar to stratum 0 & 1. in refid_str() 44 int stratum in refid_str() 53 * ntpd can have stratum = 0 and refid 127.0.0.1 in orphan mode. in refid_str() 56 if (0 == stratum && LOOPBACKADR_N == refid) { in refid_str() 60 if (stratum < 2) { in refid_str() 82 if ( (stratum < 0 && printable) 83 || stratum < 2) { 41 refid_str(u_int32 refid,int stratum) refid_str() argument
|
/freebsd/contrib/ntp/sntp/ |
H A D | networking.c | 239 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 D | main.c | 1138 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 D | networking.h | 58 u_char stratum; member
|
/freebsd/contrib/ntp/scripts/ |
H A D | README | 18 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/contrib/ntp/sntp/tests/ |
H A D | packetProcessing.c | 106 testpkt.p.stratum = STRATUM_REFCLOCK; in setUp() 341 testpkt.p.stratum = STRATUM_PKT_UNSPEC; 355 testpkt.p.stratum = STRATUM_PKT_UNSPEC;
|
H A D | packetHandling.c | 63 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/contrib/ntp/ntpsnmpd/ |
H A D | ntpv4-mib.mib | 103 "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/contrib/bsnmp/snmp_ntp/ |
H A D | NTP-MIB.txt | 95 " 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/contrib/ntp/ntpdc/ |
H A D | layout.std | 48 offsetof(stratum) = 10 70 offsetof(stratum) = 14 152 offsetof(stratum) = 6
|