/freebsd-11-stable/usr.sbin/ntp/scripts/ |
H A D | ntptrace | 22 $stratum = 255; 26 $stratum = $1 if (/stratum=(\d+)/); 34 last if ($stratum == 255); 45 printf("%s: stratum %d, offset %f, root distance %f", 46 $dhost, $stratum, $offset, $rootdelay); 47 printf(", refid '%s'", $refid) if ($stratum == 1); 49 last if ($stratum == 0 || $stratum == 1 || $stratum [all...] |
/freebsd-11-stable/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; 122 pp->stratum = STRATUM; 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; 193 peer->stratum [all...] |
H A D | refclock_tsyncpci.c | 249 uint8_t refStratum; // Host peer reference stratum 344 // Initialize reference stratum level and ID 698 // Set reference clock stratum level as unusable 699 pp->stratum = STRATUM_UNSPEC; 700 peer->stratum = pp->stratum; 705 // Store reference peer stratum level and ID 706 up->refStratum = sys_peer->stratum; 715 // Store reference stratum as local clock 720 // Set reference clock stratum leve [all...] |
H A D | refclock_atom.c | 133 pp->stratum = STRATUM_UNSPEC;
|
H A D | refclock_pst.c | 259 if (peer->stratum <= 1)
|
H A D | ntp_proto.c | 111 u_char sys_stratum; /* system stratum */ 165 int sys_floor = 0; /* cluster stratum floor */ 167 int sys_ceiling = STRATUM_UNSPEC - 1; /* cluster stratum ceiling */ 172 int sys_orphan = STRATUM_UNSPEC + 1; /* orphan stratum */ 624 u_char hisstratum; /* packet stratum */ 726 hisstratum = PKT_TO_STRATUM(pkt->stratum); 1283 PKT_TO_STRATUM(pkt->stratum), 1332 * stratum is greater than the manycaster or the 1340 DPRINTF(2, ("receive: AM_FXMIT drop: LEAP_NOTINSYNC || stratum || loop\n")); 1356 PKT_TO_STRATUM(pkt->stratum), [all...] |
H A D | ntp_util.c | 673 * leap, version, mode, stratum, ppoll, precision, root delay, root dispersion, REFID 687 int stratum, 714 leap, version, mode, stratum, ppoll, precision, 715 root_delay, root_dispersion, refid_str(refid, stratum)); 677 record_raw_stats( sockaddr_u *srcadr, sockaddr_u *dstadr, l_fp *t1, l_fp *t2, l_fp *t3, l_fp *t4, int leap, int version, int mode, int stratum, int ppoll, int precision, double root_delay, double root_dispersion, u_int32 refid, int len, u_char *extra ) argument
|
H A D | refclock_leitch.c | 218 peer->stratum = stratumtouse[unit]; 371 peer->stratum = stratumtouse[unit];
|
H A D | ntp_refclock.c | 221 * its reference ID and stratum are set here. It returns one if success 268 peer->stratum = STRATUM_REFCLOCK; 1169 * ID and stratum. 1209 peer->stratum = pp->stratum = (u_char)in->fudgeval1; 1236 out->fudgeval1 = pp->stratum;
|
/freebsd-11-stable/contrib/ntp/scripts/deprecated/ |
H A D | ntp-groper | 13 # dumbo.hp.com answers NTP version 2, stratum: 3, ref: telford.nsa.hp.com 14 # dumbo.hp.com answers NTP version 3, stratum: 3, ref: telford.nsa.hp.com 74 # Next, we get the stratum 75 stratum=`fgrep "stratum=" $ntpqlog` 76 #stratum=${stratum##*stratum=} 77 #stratum=${stratum [all...] |
/freebsd-11-stable/contrib/ntp/scripts/ntptrace/ |
H A D | ntptrace.in | 35 printf "%s: stratum %d, offset %f, synch distance %f", 36 $dhost, $info{stratum}, $info{offset}, $info{syncdistance}; 37 printf ", refid '%s'", $info{refid} if $info{stratum} == 1; 40 last if $info{stratum} == 0 || $info{stratum} == 1 || 41 $info{stratum} == 16; 60 return if not exists $info->{stratum};
|
/freebsd-11-stable/contrib/ntp/libntp/ |
H A D | numtoa.c | 36 /* Convert a refid & stratum to a string */ 40 int stratum 46 if (stratum > 1)
|
/freebsd-11-stable/contrib/ntp/scripts/ntpsweep/ |
H A D | ntpsweep.in | 100 my $stratum = 0; 112 ($offset, $stratum) = ntp_sntp_line($host); 115 if ($stratum) { 152 if ($stratum) { 154 $stratum, $offset, (substr $daemonversion, 0, 11), 164 if ($stratum || $known_host) { # Valid or known host
|
/freebsd-11-stable/contrib/ntp/scripts/lib/NTP/ |
H A D | Util.pm | 135 my ($offset, $stratum); 144 $stratum = $1; 145 # warn "Found stratum at #7\n"; 147 $stratum = $1; 148 # warn "Found stratum at #8\n"; 152 return ($offset, $stratum);
|
/freebsd-11-stable/contrib/tcpdump/ |
H A D | print-ntp.c | 118 u_char stratum; /* Stratum level */ member in struct:ntpdata 234 ND_TCHECK(bp->stratum); 236 bp->stratum, 237 tok2str(ntp_stratum_values, (bp->stratum >=2 && bp->stratum<=15) ? "secondary reference" : "reserved", bp->stratum))); 256 /* Interpretation depends on stratum */ 257 switch (bp->stratum) {
|
/freebsd-11-stable/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-11-stable/contrib/ntp/sntp/ |
H A D | networking.c | 238 "%s: mode %d stratum %d", func_name, 239 PKT_MODE(rpkt->li_vn_mode), rpkt->stratum); 243 if (STRATUM_PKT_UNSPEC == rpkt->stratum) { 246 TRACE(1, ("%s: Stratum unspecified, going to check for KOD (stratum: %d)\n", 247 func_name, rpkt->stratum));
|
H A D | networking.h | 58 u_char stratum; member in struct:speer
|
H A D | main.c | 1137 x_pkt->stratum = STRATUM_TO_PKT(STRATUM_UNSPEC); 1175 int stratum; local 1259 stratum = rpkt->stratum; 1260 if (0 == stratum) 1261 stratum = 16; 1294 hostnameaddr(hostname, host), stratum,
|
/freebsd-11-stable/contrib/ntp/ntpdate/ |
H A D | ntpdate.h | 21 u_char stratum; /* stratum of remote server */ member in struct:server
|
H A D | ntpdate.c | 102 #define NTP_INFIN 15 /* max stratum, infinity a la Bellman-Ford */ 695 xpkt.stratum = STRATUM_TO_PKT(STRATUM_UNSPEC); 783 || rpkt->stratum >= STRATUM_UNSPEC) { 785 printf("receive: mode %d stratum %d\n", 786 PKT_MODE(rpkt->li_vn_mode), rpkt->stratum); 841 STRATUM_PKT_UNSPEC == rpkt->stratum && 854 server->stratum = PKT_TO_STRATUM(rpkt->stratum); 1065 if (server->stratum == 0) { 1070 if (server->stratum > NTP_INFI [all...] |
/freebsd-11-stable/contrib/ntp/sntp/tests/ |
H A D | packetProcessing.c | 115 testpkt.p.stratum = STRATUM_REFCLOCK; 336 testpkt.p.stratum = STRATUM_PKT_UNSPEC; 350 testpkt.p.stratum = STRATUM_PKT_UNSPEC;
|
H A D | packetHandling.c | 63 TEST_ASSERT_EQUAL(STRATUM_UNSPEC, PKT_TO_STRATUM(testpkt.stratum)); 100 TEST_ASSERT_EQUAL(STRATUM_UNSPEC, PKT_TO_STRATUM(testpkt.stratum));
|
/freebsd-11-stable/contrib/ntp/include/ |
H A D | ntp_refclock.h | 177 u_char stratum; /* server stratum */ member in struct:refclockproc
|
H A D | ntp_request.h | 355 u_char stratum; /* stratum of peer */ member in struct:info_peer_summary 382 u_char stratum; /* peer.stratum */ member in struct:info_peer 480 u_char stratum; /* our stratum */ member in struct:info_sys
|