diff options
author | Cy Schubert <cy@FreeBSD.org> | 2024-05-10 15:15:56 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2024-05-26 22:55:52 +0000 |
commit | 1f833b3fc9968c3dd7ed79ccf0525ebf16c891ad (patch) | |
tree | 85801af20e3b694584668aeb39ecec75ee71f72c /scripts/ntptrace | |
parent | ab1f1aa8333369a83ff284848fc3fc2e52d5f29f (diff) |
Diffstat (limited to 'scripts/ntptrace')
-rw-r--r-- | scripts/ntptrace/Makefile.in | 1 | ||||
-rw-r--r-- | scripts/ntptrace/invoke-ntptrace.texi | 4 | ||||
-rw-r--r-- | scripts/ntptrace/ntptrace-opts | 4 | ||||
-rw-r--r-- | scripts/ntptrace/ntptrace.1ntptraceman | 4 | ||||
-rw-r--r-- | scripts/ntptrace/ntptrace.1ntptracemdoc | 4 | ||||
-rw-r--r-- | scripts/ntptrace/ntptrace.html | 4 | ||||
-rwxr-xr-x | scripts/ntptrace/ntptrace.in | 11 | ||||
-rw-r--r-- | scripts/ntptrace/ntptrace.man.in | 4 | ||||
-rw-r--r-- | scripts/ntptrace/ntptrace.mdoc.in | 4 |
9 files changed, 26 insertions, 14 deletions
diff --git a/scripts/ntptrace/Makefile.in b/scripts/ntptrace/Makefile.in index df8e287aa48d..4a9bc393b3d0 100644 --- a/scripts/ntptrace/Makefile.in +++ b/scripts/ntptrace/Makefile.in @@ -363,6 +363,7 @@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_NET_SNMP_CONFIG = @PATH_NET_SNMP_CONFIG@ +PATH_OPENSSL = @PATH_OPENSSL@ PATH_PERL = @PATH_PERL@ PATH_RUBY = @PATH_RUBY@ PATH_SEPARATOR = @PATH_SEPARATOR@ diff --git a/scripts/ntptrace/invoke-ntptrace.texi b/scripts/ntptrace/invoke-ntptrace.texi index 0169c0eb6a97..e813a78f7543 100644 --- a/scripts/ntptrace/invoke-ntptrace.texi +++ b/scripts/ntptrace/invoke-ntptrace.texi @@ -6,7 +6,7 @@ # # EDIT THIS FILE WITH CAUTION (invoke-ntptrace.texi) # -# It has been AutoGen-ed June 6, 2023 at 04:39:27 AM by AutoGen 5.18.16 +# It has been AutoGen-ed May 25, 2024 at 12:05:48 AM by AutoGen 5.18.16 # From the definitions ntptrace-opts.def # and the template file agtexi-cmd.tpl @end ignore @@ -62,7 +62,7 @@ with a status code of 0. @exampleindent 0 @example -ntptrace - Trace peers of an NTP server - Ver. 4.2.8p17 +ntptrace - Trace peers of an NTP server - Ver. 4.2.8p18 USAGE: ntptrace [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]... [host] -n, --numeric Print IP addresses instead of hostnames diff --git a/scripts/ntptrace/ntptrace-opts b/scripts/ntptrace/ntptrace-opts index ea17cb0f66c9..8857e8939c17 100644 --- a/scripts/ntptrace/ntptrace-opts +++ b/scripts/ntptrace/ntptrace-opts @@ -1,6 +1,6 @@ # EDIT THIS FILE WITH CAUTION (ntptrace-opts) # -# It has been AutoGen-ed June 6, 2023 at 04:39:25 AM by AutoGen 5.18.16 +# It has been AutoGen-ed May 25, 2024 at 12:05:47 AM by AutoGen 5.18.16 # From the definitions ntptrace-opts.def # and the template file perlopt @@ -40,7 +40,7 @@ sub processOptions { 'help|?', 'more-help')); $usage = <<'USAGE'; -ntptrace - Trace peers of an NTP server - Ver. 4.2.8p17 +ntptrace - Trace peers of an NTP server - Ver. 4.2.8p18 USAGE: ntptrace [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [host] -n, --numeric Print IP addresses instead of hostnames diff --git a/scripts/ntptrace/ntptrace.1ntptraceman b/scripts/ntptrace/ntptrace.1ntptraceman index c1833697961a..4da059ad556a 100644 --- a/scripts/ntptrace/ntptrace.1ntptraceman +++ b/scripts/ntptrace/ntptrace.1ntptraceman @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH ntptrace 1ntptraceman "06 Jun 2023" "ntp (4.2.8p17)" "User Commands" +.TH ntptrace 1ntptraceman "25 May 2024" "ntp (4.2.8p18)" "User Commands" .\" .\" EDIT THIS FILE WITH CAUTION (in-mem file) .\" -.\" It has been AutoGen-ed June 6, 2023 at 04:39:28 AM by AutoGen 5.18.16 +.\" It has been AutoGen-ed May 25, 2024 at 12:05:50 AM by AutoGen 5.18.16 .\" From the definitions ntptrace-opts.def .\" and the template file agman-cmd.tpl .SH NAME diff --git a/scripts/ntptrace/ntptrace.1ntptracemdoc b/scripts/ntptrace/ntptrace.1ntptracemdoc index d42f63a644fc..0f26eb3d090f 100644 --- a/scripts/ntptrace/ntptrace.1ntptracemdoc +++ b/scripts/ntptrace/ntptrace.1ntptracemdoc @@ -1,9 +1,9 @@ -.Dd June 6 2023 +.Dd May 25 2024 .Dt NTPTRACE 1ntptracemdoc User Commands .Os .\" EDIT THIS FILE WITH CAUTION (ntptrace-opts.mdoc) .\" -.\" It has been AutoGen-ed June 6, 2023 at 04:39:25 AM by AutoGen 5.18.16 +.\" It has been AutoGen-ed May 25, 2024 at 12:05:47 AM by AutoGen 5.18.16 .\" From the definitions ntptrace-opts.def .\" and the template file agmdoc-cmd.tpl .Sh NAME diff --git a/scripts/ntptrace/ntptrace.html b/scripts/ntptrace/ntptrace.html index 594c9ef59cd7..f445a25c63b0 100644 --- a/scripts/ntptrace/ntptrace.html +++ b/scripts/ntptrace/ntptrace.html @@ -48,7 +48,7 @@ Previous: <a href="dir.html#Top" accesskey="p" rel="prev">(dir)</a>, Up: <a href <span id="Simple-Network-Time-Protocol-User-Manual"></span><h1 class="top">Simple Network Time Protocol User Manual</h1> <p>This document describes the use of the NTP Project’s <code>ntptrace</code> program. -This document applies to version 4.2.8p17 of <code>ntptrace</code>. +This document applies to version 4.2.8p18 of <code>ntptrace</code>. </p> <span id="SEC_Overview"></span> <h2 class="shortcontents-heading">Short Table of Contents</h2> @@ -135,7 +135,7 @@ used to select the program, defaulting to <samp>more</samp>. Both will exit with a status code of 0. </p> <div class="example"> -<pre class="example">ntptrace - Trace peers of an NTP server - Ver. 4.2.8p17 +<pre class="example">ntptrace - Trace peers of an NTP server - Ver. 4.2.8p18 USAGE: ntptrace [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [host] -n, --numeric Print IP addresses instead of hostnames diff --git a/scripts/ntptrace/ntptrace.in b/scripts/ntptrace/ntptrace.in index 7cc5ce7f7224..d92e0796391d 100755 --- a/scripts/ntptrace/ntptrace.in +++ b/scripts/ntptrace/ntptrace.in @@ -1,4 +1,5 @@ #! @PATH_PERL@ -w +# @configure_input@ # John Hay -- John.Hay@icomtek.csir.co.za / jhay@FreeBSD.org package ntptrace; @@ -6,6 +7,7 @@ use 5.006_000; use strict; use lib "@PERLLIBDIR@"; use NTP::Util qw(ntp_read_vars do_dns); +use Scalar::Util qw(looks_like_number); exit run(@ARGV) unless caller; @@ -59,7 +61,16 @@ sub get_info { return if not defined $info; return if not exists $info->{stratum}; + if (not (exists $info->{offset} && looks_like_number($info->{offset}))) { + $info->{offset} = "NaN"; + } $info->{offset} /= 1000; + if (not (exists $info->{rootdisp} && looks_like_number($info->{rootdisp}))) { + $info->{rootdisp} = "NaN"; + } + if (not (exists $info->{rootdelay} && looks_like_number($info->{rootdelay}))) { + $info->{rootdelay} = "NaN"; + } $info->{syncdistance} = ($info->{rootdisp} + ($info->{rootdelay} / 2)) / 1000; return %$info; diff --git a/scripts/ntptrace/ntptrace.man.in b/scripts/ntptrace/ntptrace.man.in index db4e5ab6c3aa..fe9275e63607 100644 --- a/scripts/ntptrace/ntptrace.man.in +++ b/scripts/ntptrace/ntptrace.man.in @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH ntptrace @NTPTRACE_MS@ "06 Jun 2023" "ntp (4.2.8p17)" "User Commands" +.TH ntptrace @NTPTRACE_MS@ "25 May 2024" "ntp (4.2.8p18)" "User Commands" .\" .\" EDIT THIS FILE WITH CAUTION (in-mem file) .\" -.\" It has been AutoGen-ed June 6, 2023 at 04:39:28 AM by AutoGen 5.18.16 +.\" It has been AutoGen-ed May 25, 2024 at 12:05:50 AM by AutoGen 5.18.16 .\" From the definitions ntptrace-opts.def .\" and the template file agman-cmd.tpl .SH NAME diff --git a/scripts/ntptrace/ntptrace.mdoc.in b/scripts/ntptrace/ntptrace.mdoc.in index 1d64345f1689..53f2bb990dee 100644 --- a/scripts/ntptrace/ntptrace.mdoc.in +++ b/scripts/ntptrace/ntptrace.mdoc.in @@ -1,9 +1,9 @@ -.Dd June 6 2023 +.Dd May 25 2024 .Dt NTPTRACE @NTPTRACE_MS@ User Commands .Os .\" EDIT THIS FILE WITH CAUTION (ntptrace-opts.mdoc) .\" -.\" It has been AutoGen-ed June 6, 2023 at 04:39:25 AM by AutoGen 5.18.16 +.\" It has been AutoGen-ed May 25, 2024 at 12:05:47 AM by AutoGen 5.18.16 .\" From the definitions ntptrace-opts.def .\" and the template file agmdoc-cmd.tpl .Sh NAME |