/freebsd-9.3-release/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-9.3-release/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_util.c | 681 int stratum, 705 leap, version, mode, stratum, ppoll, precision, 706 root_delay, root_dispersion, refid_str(refid, stratum)); 671 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 ) argument
|
H A D | refclock_leitch.c | 218 peer->stratum = stratumtouse[unit]; 371 peer->stratum = stratumtouse[unit];
|
H A D | ntp_proto.c | 92 u_char sys_stratum; /* system stratum */ 140 int sys_floor = 0; /* cluster stratum floor */ 142 int sys_ceiling = STRATUM_UNSPEC - 1; /* cluster stratum ceiling */ 147 int sys_orphan = STRATUM_UNSPEC + 1; /* orphan stratum */ 585 u_char hisstratum; /* packet stratum */ 639 hisstratum = PKT_TO_STRATUM(pkt->stratum); 1096 * stratum is greater than the manycaster or the 1159 * Do not respond if unsynchronized or stratum is below 1223 * Do not respond if unsynchronized or stratum is below 1376 * Do not respond if synchronized and if stratum i [all...] |
/freebsd-9.3-release/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-9.3-release/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-9.3-release/contrib/ntp/libntp/ |
H A D | numtoa.c | 36 /* Convert a refid & stratum to a string */ 40 int stratum 46 if (stratum > 1)
|
/freebsd-9.3-release/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-9.3-release/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-9.3-release/contrib/tcpdump/ |
H A D | ntp.h | 80 u_char stratum; /* Stratum level */ member in struct:ntpdata
|
H A D | print-ntp.c | 116 TCHECK(bp->stratum); 118 bp->stratum, 119 tok2str(ntp_stratum_values, (bp->stratum >=2 && bp->stratum<=15) ? "secondary reference" : "reserved", bp->stratum)); 138 /* Interpretation depends on stratum */ 139 switch (bp->stratum) {
|
/freebsd-9.3-release/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-9.3-release/contrib/ntp/sntp/ |
H A D | networking.c | 233 "%s: mode %d stratum %d", func_name, 234 PKT_MODE(rpkt->li_vn_mode), rpkt->stratum); 238 if (STRATUM_PKT_UNSPEC == rpkt->stratum) { 241 TRACE(1, ("%s: Stratum unspecified, going to check for KOD (stratum: %d)\n", 242 func_name, rpkt->stratum));
|
H A D | networking.h | 58 u_char stratum; member in struct:speer
|
H A D | main.c | 1131 x_pkt->stratum = STRATUM_TO_PKT(STRATUM_UNSPEC); 1161 int stratum; local 1245 stratum = rpkt->stratum; 1246 if (0 == stratum) 1247 stratum = 16; 1280 hostnameaddr(hostname, host), stratum,
|
/freebsd-9.3-release/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 */ 683 xpkt.stratum = STRATUM_TO_PKT(STRATUM_UNSPEC); 771 || rpkt->stratum >= STRATUM_UNSPEC) { 773 printf("receive: mode %d stratum %d\n", 774 PKT_MODE(rpkt->li_vn_mode), rpkt->stratum); 829 STRATUM_PKT_UNSPEC == rpkt->stratum && 842 server->stratum = PKT_TO_STRATUM(rpkt->stratum); 1056 if (server->stratum > NTP_INFIN) { 1059 continue; /* stratum n [all...] |
/freebsd-9.3-release/contrib/ntp/sntp/tests/ |
H A D | packetProcessing.c | 111 testpkt.p.stratum = STRATUM_REFCLOCK; 332 testpkt.p.stratum = STRATUM_PKT_UNSPEC; 346 testpkt.p.stratum = STRATUM_PKT_UNSPEC;
|
H A D | packetHandling.c | 63 TEST_ASSERT_EQUAL(STRATUM_UNSPEC, PKT_TO_STRATUM(testpkt.stratum)); 99 TEST_ASSERT_EQUAL(STRATUM_UNSPEC, PKT_TO_STRATUM(testpkt.stratum));
|
/freebsd-9.3-release/contrib/ntp/include/ |
H A D | ntp_refclock.h | 179 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
|