]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Add -u option for ntpq/ntpdc
authorHarlan Stenn <stenn@ntp.org>
Mon, 27 Jun 2022 05:02:54 +0000 (00:02 -0500)
committerHarlan Stenn <stenn@ntp.org>
Mon, 27 Jun 2022 05:02:54 +0000 (00:02 -0500)
bk: 62b939feT2xtd3rHTLlV5e4CTYoTUA

17 files changed:
ntpdc/invoke-ntpdc.texi
ntpdc/ntpdc-opts.c
ntpdc/ntpdc-opts.def
ntpdc/ntpdc-opts.h
ntpdc/ntpdc.1ntpdcman
ntpdc/ntpdc.1ntpdcmdoc
ntpdc/ntpdc.html
ntpdc/ntpdc.man.in
ntpdc/ntpdc.mdoc.in
ntpq/invoke-ntpq.texi
ntpq/ntpq-opts.c
ntpq/ntpq-opts.def
ntpq/ntpq-opts.h
ntpq/ntpq.1ntpqman
ntpq/ntpq.1ntpqmdoc
ntpq/ntpq.man.in
ntpq/ntpq.mdoc.in

index aaa64e06d8638e3774bc5403c5806f9e424015bc..0c5dd3013b8c0d6ffbdd7b130aa7f56b53091f17 100644 (file)
@@ -6,7 +6,7 @@
 #
 # EDIT THIS FILE WITH CAUTION  (invoke-ntpdc.texi)
 #
-# It has been AutoGen-ed  June 26, 2022 at 05:34:08 AM by AutoGen 5.18.5
+# It has been AutoGen-ed  June 27, 2022 at 12:01:01 AM by AutoGen 5.18.5
 # From the definitions    ntpdc-opts.def
 # and the template file   agtexi-cmd.tpl
 @end ignore
@@ -52,6 +52,7 @@ This software is released under the NTP license, <http://ntp.org/license>.
 * ntpdc numeric::                numeric option (-n)
 * ntpdc peers::                  peers option (-p)
 * ntpdc showpeers::              showpeers option (-s)
+* ntpdc unconnected::            unconnected option (-u)
 * ntpdc config::                 presetting/configuring ntpdc
 * ntpdc exit status::            exit status
 * ntpdc Usage::                  Usage
@@ -102,6 +103,7 @@ Usage:  ntpdc [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]... [ host ...]
                                 - prohibits the option 'command'
    -s no  showpeers      Show a list of the peers
                                 - prohibits the option 'command'
+   -u no  unconnected    Use unconnected UDP to communicate with ntpd (default on Windows)
       opt version        output version information and exit
    -? no  help           display extended usage information and exit
    -! no  more-help      extended usage information passed thru pager
@@ -243,6 +245,13 @@ command.
 
 Print a list of the peers known to the server as well as a summary
 of their state. This is equivalent to the 'dmpeers' interactive command.
+@node ntpdc unconnected
+@subsection unconnected option (-u)
+@cindex ntpdc-unconnected
+
+This is the ``use unconnected udp to communicate with ntpd (default on windows)'' option.
+Open an unconnected UDP association to ntpd (the default
+on Windows).
 
 
 @node ntpdc config
index 0363e6c3719f36462acf8fa6ee5bc598039cdb6c..1c06949f4cc2343359f0cb4888e3663907d04db4 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *  EDIT THIS FILE WITH CAUTION  (ntpdc-opts.c)
  *
- *  It has been AutoGen-ed  June 26, 2022 at 05:34:04 AM by AutoGen 5.18.5
+ *  It has been AutoGen-ed  June 27, 2022 at 12:00:57 AM by AutoGen 5.18.5
  *  From the definitions    ntpdc-opts.def
  *  and the template file   options
  *
@@ -68,7 +68,7 @@ extern FILE * option_usage_fp;
 /**
  *  static const strings for ntpdc options
  */
-static char const ntpdc_opt_strs[1914] =
+static char const ntpdc_opt_strs[2004] =
 /*     0 */ "ntpdc 4.2.8p15\n"
             "Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation, all rights reserved.\n"
             "This is free software. It is licensed for use, modification and\n"
@@ -115,27 +115,30 @@ static char const ntpdc_opt_strs[1914] =
 /*  1411 */ "Show a list of the peers\0"
 /*  1436 */ "SHOWPEERS\0"
 /*  1446 */ "showpeers\0"
-/*  1456 */ "display extended usage information and exit\0"
-/*  1500 */ "help\0"
-/*  1505 */ "extended usage information passed thru pager\0"
-/*  1550 */ "more-help\0"
-/*  1560 */ "output version information and exit\0"
-/*  1596 */ "version\0"
-/*  1604 */ "save the option state to a config file\0"
-/*  1643 */ "save-opts\0"
-/*  1653 */ "load options from a config file\0"
-/*  1685 */ "LOAD_OPTS\0"
-/*  1695 */ "no-load-opts\0"
-/*  1708 */ "no\0"
-/*  1711 */ "NTPDC\0"
-/*  1717 */ "ntpdc - vendor-specific NTPD control program - Ver. 4.2.8p15\n"
+/*  1456 */ "Use unconnected UDP to communicate with ntpd (default on Windows)\0"
+/*  1522 */ "UNCONNECTED\0"
+/*  1534 */ "unconnected\0"
+/*  1546 */ "display extended usage information and exit\0"
+/*  1590 */ "help\0"
+/*  1595 */ "extended usage information passed thru pager\0"
+/*  1640 */ "more-help\0"
+/*  1650 */ "output version information and exit\0"
+/*  1686 */ "version\0"
+/*  1694 */ "save the option state to a config file\0"
+/*  1733 */ "save-opts\0"
+/*  1743 */ "load options from a config file\0"
+/*  1775 */ "LOAD_OPTS\0"
+/*  1785 */ "no-load-opts\0"
+/*  1798 */ "no\0"
+/*  1801 */ "NTPDC\0"
+/*  1807 */ "ntpdc - vendor-specific NTPD control program - Ver. 4.2.8p15\n"
             "Usage:  %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [ host ...]\n\0"
-/*  1848 */ "$HOME\0"
-/*  1854 */ ".\0"
-/*  1856 */ ".ntprc\0"
-/*  1863 */ "http://bugs.ntp.org, bugs@ntp.org\0"
-/*  1897 */ "\n\0"
-/*  1899 */ "ntpdc 4.2.8p15";
+/*  1938 */ "$HOME\0"
+/*  1944 */ ".\0"
+/*  1946 */ ".ntprc\0"
+/*  1953 */ "http://bugs.ntp.org, bugs@ntp.org\0"
+/*  1987 */ "\n\0"
+/*  1989 */ "ntpdc 4.2.8p15";
 
 /**
  *  ipv4 option description with
@@ -286,14 +289,26 @@ static int const aShowpeersCantList[] = {
 /** Compiled in flag settings for the showpeers option */
 #define SHOWPEERS_FLAGS     (OPTST_DISABLED)
 
+/**
+ *  unconnected option description:
+ */
+/** Descriptive text for the unconnected option */
+#define UNCONNECTED_DESC      (ntpdc_opt_strs+1456)
+/** Upper-cased name for the unconnected option */
+#define UNCONNECTED_NAME      (ntpdc_opt_strs+1522)
+/** Name string for the unconnected option */
+#define UNCONNECTED_name      (ntpdc_opt_strs+1534)
+/** Compiled in flag settings for the unconnected option */
+#define UNCONNECTED_FLAGS     (OPTST_DISABLED)
+
 /*
  *  Help/More_Help/Version option descriptions:
  */
-#define HELP_DESC       (ntpdc_opt_strs+1456)
-#define HELP_name       (ntpdc_opt_strs+1500)
+#define HELP_DESC       (ntpdc_opt_strs+1546)
+#define HELP_name       (ntpdc_opt_strs+1590)
 #ifdef HAVE_WORKING_FORK
-#define MORE_HELP_DESC  (ntpdc_opt_strs+1505)
-#define MORE_HELP_name  (ntpdc_opt_strs+1550)
+#define MORE_HELP_DESC  (ntpdc_opt_strs+1595)
+#define MORE_HELP_name  (ntpdc_opt_strs+1640)
 #define MORE_HELP_FLAGS (OPTST_IMM | OPTST_NO_INIT)
 #else
 #define MORE_HELP_DESC  HELP_DESC
@@ -306,14 +321,14 @@ static int const aShowpeersCantList[] = {
 #  define VER_FLAGS     (OPTST_SET_ARGTYPE(OPARG_TYPE_STRING) | \
                          OPTST_ARG_OPTIONAL | OPTST_IMM | OPTST_NO_INIT)
 #endif
-#define VER_DESC        (ntpdc_opt_strs+1560)
-#define VER_name        (ntpdc_opt_strs+1596)
-#define SAVE_OPTS_DESC  (ntpdc_opt_strs+1604)
-#define SAVE_OPTS_name  (ntpdc_opt_strs+1643)
-#define LOAD_OPTS_DESC     (ntpdc_opt_strs+1653)
-#define LOAD_OPTS_NAME     (ntpdc_opt_strs+1685)
-#define NO_LOAD_OPTS_name  (ntpdc_opt_strs+1695)
-#define LOAD_OPTS_pfx      (ntpdc_opt_strs+1708)
+#define VER_DESC        (ntpdc_opt_strs+1650)
+#define VER_name        (ntpdc_opt_strs+1686)
+#define SAVE_OPTS_DESC  (ntpdc_opt_strs+1694)
+#define SAVE_OPTS_name  (ntpdc_opt_strs+1733)
+#define LOAD_OPTS_DESC     (ntpdc_opt_strs+1743)
+#define LOAD_OPTS_NAME     (ntpdc_opt_strs+1775)
+#define NO_LOAD_OPTS_name  (ntpdc_opt_strs+1785)
+#define LOAD_OPTS_pfx      (ntpdc_opt_strs+1798)
 #define LOAD_OPTS_name     (NO_LOAD_OPTS_name + 3)
 /**
  *  Declare option callback procedures
@@ -454,6 +469,18 @@ static tOptDesc optDesc[OPTION_CT] = {
      /* desc, NAME, name */ SHOWPEERS_DESC, SHOWPEERS_NAME, SHOWPEERS_name,
      /* disablement strs */ NULL, NULL },
 
+  {  /* entry idx, value */ 10, VALUE_OPT_UNCONNECTED,
+     /* equiv idx, value */ 10, VALUE_OPT_UNCONNECTED,
+     /* equivalenced to  */ NO_EQUIVALENT,
+     /* min, max, act ct */ 0, 1, 0,
+     /* opt state flags  */ UNCONNECTED_FLAGS, 0,
+     /* last opt argumnt */ { NULL }, /* --unconnected */
+     /* arg list/cookie  */ NULL,
+     /* must/cannot opts */ NULL, NULL,
+     /* option proc      */ NULL,
+     /* desc, NAME, name */ UNCONNECTED_DESC, UNCONNECTED_NAME, UNCONNECTED_name,
+     /* disablement strs */ NULL, NULL },
+
   {  /* entry idx, value */ INDEX_OPT_VERSION, VALUE_OPT_VERSION,
      /* equiv idx value  */ NO_EQUIVALENT, VALUE_OPT_VERSION,
      /* equivalenced to  */ NO_EQUIVALENT,
@@ -522,24 +549,24 @@ static tOptDesc optDesc[OPTION_CT] = {
 
 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
 /** Reference to the upper cased version of ntpdc. */
-#define zPROGNAME       (ntpdc_opt_strs+1711)
+#define zPROGNAME       (ntpdc_opt_strs+1801)
 /** Reference to the title line for ntpdc usage. */
-#define zUsageTitle     (ntpdc_opt_strs+1717)
+#define zUsageTitle     (ntpdc_opt_strs+1807)
 /** ntpdc configuration file name. */
-#define zRcName         (ntpdc_opt_strs+1856)
+#define zRcName         (ntpdc_opt_strs+1946)
 /** Directories to search for ntpdc config files. */
 static char const * const apzHomeList[3] = {
-    ntpdc_opt_strs+1848,
-    ntpdc_opt_strs+1854,
+    ntpdc_opt_strs+1938,
+    ntpdc_opt_strs+1944,
     NULL };
 /** The ntpdc program bug email address. */
-#define zBugsAddr       (ntpdc_opt_strs+1863)
+#define zBugsAddr       (ntpdc_opt_strs+1953)
 /** Clarification/explanation of what ntpdc does. */
-#define zExplain        (ntpdc_opt_strs+1897)
+#define zExplain        (ntpdc_opt_strs+1987)
 /** Extra detail explaining what ntpdc does. */
 #define zDetail         (NULL)
 /** The full version string for ntpdc. */
-#define zFullVersion    (ntpdc_opt_strs+1899)
+#define zFullVersion    (ntpdc_opt_strs+1989)
 /* extracted from optcode.tlib near line 364 */
 
 #if defined(ENABLE_NLS)
@@ -661,7 +688,7 @@ tOptions ntpdcOptions = {
       NO_EQUIVALENT, /* '-#' option index */
       NO_EQUIVALENT /* index of default opt */
     },
-    15 /* full option count */, 10 /* user option count */,
+    16 /* full option count */, 11 /* user option count */,
     ntpdc_full_usage, ntpdc_short_usage,
     NULL, NULL,
     PKGDATADIR, ntpdc_packager_info
@@ -846,6 +873,9 @@ implied warranty.\n"));
   /* referenced via ntpdcOptions.pOptDesc->pzText */
   puts(_("Show a list of the peers"));
 
+  /* referenced via ntpdcOptions.pOptDesc->pzText */
+  puts(_("Use unconnected UDP to communicate with ntpd (default on Windows)"));
+
   /* referenced via ntpdcOptions.pOptDesc->pzText */
   puts(_("display extended usage information and exit"));
 
index df3350eb8a3caf14e01a0525d5f3459ddcd32c67..62d086ee9cc9853d2929f56e95dc473aefa4f9c7 100644 (file)
@@ -104,6 +104,16 @@ flag = {
        _EndOfDoc_;
 };
 
+flag = {
+    name      = unconnected;
+    value     = u;
+    descrip   = "Use unconnected UDP to communicate with ntpd (default on Windows)";
+    doc = <<-  _EndOfDoc_
+       Open an unconnected UDP association to ntpd (the default
+       on Windows).
+       _EndOfDoc_;
+};
+
 /* explain: Additional information whenever the usage routine is invoked */
 explain = <<- _END_EXPLAIN
        _END_EXPLAIN;
index 6f10f8a0284705949c90d8240004c63dfba1b06e..ffa1d0d096f83cfc69c60442ed38237a64f3e2b9 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *  EDIT THIS FILE WITH CAUTION  (ntpdc-opts.h)
  *
- *  It has been AutoGen-ed  June 26, 2022 at 05:34:04 AM by AutoGen 5.18.5
+ *  It has been AutoGen-ed  June 27, 2022 at 12:00:57 AM by AutoGen 5.18.5
  *  From the definitions    ntpdc-opts.def
  *  and the template file   options
  *
@@ -74,14 +74,15 @@ typedef enum {
     INDEX_OPT_NUMERIC          =  7,
     INDEX_OPT_PEERS            =  8,
     INDEX_OPT_SHOWPEERS        =  9,
-    INDEX_OPT_VERSION          = 10,
-    INDEX_OPT_HELP             = 11,
-    INDEX_OPT_MORE_HELP        = 12,
-    INDEX_OPT_SAVE_OPTS        = 13,
-    INDEX_OPT_LOAD_OPTS        = 14
+    INDEX_OPT_UNCONNECTED      = 10,
+    INDEX_OPT_VERSION          = 11,
+    INDEX_OPT_HELP             = 12,
+    INDEX_OPT_MORE_HELP        = 13,
+    INDEX_OPT_SAVE_OPTS        = 14,
+    INDEX_OPT_LOAD_OPTS        = 15
 } teOptIndex;
 /** count of all options for ntpdc */
-#define OPTION_CT    15
+#define OPTION_CT    16
 /** ntpdc version */
 #define NTPDC_VERSION       "4.2.8p15"
 /** Full ntpdc version text */
@@ -178,6 +179,10 @@ typedef enum {
 #  warning undefining SHOWPEERS due to option name conflict
 #  undef   SHOWPEERS
 # endif
+# ifdef    UNCONNECTED
+#  warning undefining UNCONNECTED due to option name conflict
+#  undef   UNCONNECTED
+# endif
 #else  /* NO_OPTION_NAME_WARNINGS */
 # undef IPV4
 # undef IPV6
@@ -189,6 +194,7 @@ typedef enum {
 # undef NUMERIC
 # undef PEERS
 # undef SHOWPEERS
+# undef UNCONNECTED
 #endif  /*  NO_OPTION_NAME_WARNINGS */
 
 /**
@@ -207,6 +213,7 @@ typedef enum {
 #define VALUE_OPT_NUMERIC        'n'
 #define VALUE_OPT_PEERS          'p'
 #define VALUE_OPT_SHOWPEERS      's'
+#define VALUE_OPT_UNCONNECTED    'u'
 /** option flag (value) for help-value option */
 #define VALUE_OPT_HELP          '?'
 /** option flag (value) for more-help-value option */
index c6a72cfeb64efe850a3f7061aa690befb4549d18..c9b8d1f51af2f5a6ab8d43e91de3d60c91c136ff 100644 (file)
 .ds B-Font B
 .ds I-Font I
 .ds R-Font R
-.TH ntpdc 1ntpdcman "26 Jun 2022" "4.2.8p15" "User Commands"
+.TH ntpdc 1ntpdcman "27 Jun 2022" "4.2.8p15" "User Commands"
 .\"
 .\" EDIT THIS FILE WITH CAUTION (in-mem file)
 .\"
-.\" It has been AutoGen-ed June 26, 2022 at 05:34:10 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed June 27, 2022 at 12:01:03 AM by AutoGen 5.18.5
 .\" From the definitions ntpdc-opts.def
 .\" and the template file agman-cmd.tpl
 .SH NAME
@@ -107,6 +107,12 @@ command.
 Print a list of the peers known to the server as well as a summary
 of their state. This is equivalent to the 'dmpeers' interactive command.
 .TP
+.NOP \f\*[B-Font]\-u\f[], \f\*[B-Font]\-\-unconnected\f[]
+Use unconnected UDP to communicate with ntpd (default on Windows).
+.sp
+Open an unconnected UDP association to ntpd (the default
+on Windows).
+.TP
 .NOP \f\*[B-Font]\-\&?\f[], \f\*[B-Font]\-\-help\f[]
 Display usage information and exit.
 .TP
index 4aec18a87bef8fc7bb4afcbec923281ce68a4824..9937e7a580279790ef1c25947e8041c9618aea05 100644 (file)
@@ -1,9 +1,9 @@
-.Dd June 26 2022
+.Dd June 27 2022
 .Dt NTPDC 1ntpdcmdoc User Commands
 .Os
 .\"  EDIT THIS FILE WITH CAUTION  (ntpdc-opts.mdoc)
 .\"
-.\"  It has been AutoGen-ed  June 26, 2022 at 05:34:07 AM by AutoGen 5.18.5
+.\"  It has been AutoGen-ed  June 27, 2022 at 12:01:00 AM by AutoGen 5.18.5
 .\"  From the definitions    ntpdc-opts.def
 .\"  and the template file   agmdoc-cmd.tpl
 .Sh NAME
@@ -84,6 +84,11 @@ command.
 .sp
 Print a list of the peers known to the server as well as a summary
 of their state. This is equivalent to the 'dmpeers' interactive command.
+.It  Fl u , Fl \-unconnected 
+Use unconnected UDP to communicate with ntpd (default on Windows).
+.sp
+Open an unconnected UDP association to ntpd (the default
+on Windows).
 .It Fl \&? , Fl \-help
 Display usage information and exit.
 .It Fl \&! , Fl \-more\-help
index a0b953d9176b2c5f9401243dfec90e7f6c8f2299..3bb3d0603a8397e2568427697cf4b9c7d32a29bf 100644 (file)
@@ -179,6 +179,8 @@ This software is released under the NTP license, &lt;http://ntp.org/license&gt;.
 </td></tr>
 <tr><td align="left" valign="top">&bull; <a href="#ntpdc-showpeers" accesskey="9">ntpdc showpeers</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">showpeers option (-s)
 </td></tr>
+<tr><td align="left" valign="top">&bull; <a href="#ntpdc-unconnected">ntpdc unconnected</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">unconnected option (-u)
+</td></tr>
 <tr><td align="left" valign="top">&bull; <a href="#ntpdc-config">ntpdc config</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">presetting/configuring ntpdc
 </td></tr>
 <tr><td align="left" valign="top">&bull; <a href="#ntpdc-exit-status">ntpdc exit status</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">exit status
@@ -240,6 +242,7 @@ Usage:  ntpdc [ -&lt;flag&gt; [&lt;val&gt;] | --&lt;name&gt;[{=| }&lt;val&gt;] ]
                                 - prohibits the option 'command'
    -s no  showpeers      Show a list of the peers
                                 - prohibits the option 'command'
+   -u no  unconnected    Use unconnected UDP to communicate with ntpd (default on Windows)
       opt version        output version information and exit
    -? no  help           display extended usage information and exit
    -! no  more-help      extended usage information passed thru pager
@@ -398,7 +401,7 @@ of their state. This is equivalent to the &rsquo;peers&rsquo; interactive comman
 <a name="ntpdc-showpeers"></a>
 <div class="header">
 <p>
-Next: <a href="#ntpdc-config" accesskey="n" rel="next">ntpdc config</a>, Previous: <a href="#ntpdc-peers" accesskey="p" rel="prev">ntpdc peers</a>, Up: <a href="#ntpdc-Invocation" accesskey="u" rel="up">ntpdc Invocation</a> &nbsp; </p>
+Next: <a href="#ntpdc-unconnected" accesskey="n" rel="next">ntpdc unconnected</a>, Previous: <a href="#ntpdc-peers" accesskey="p" rel="prev">ntpdc peers</a>, Up: <a href="#ntpdc-Invocation" accesskey="u" rel="up">ntpdc Invocation</a> &nbsp; </p>
 </div>
 <a name="showpeers-option-_0028_002ds_0029"></a>
 <h4 class="subsection">1.1.9 showpeers option (-s)</h4>
@@ -414,16 +417,29 @@ command.
 
 <p>Print a list of the peers known to the server as well as a summary
 of their state. This is equivalent to the &rsquo;dmpeers&rsquo; interactive command.
+</p><hr>
+<a name="ntpdc-unconnected"></a>
+<div class="header">
+<p>
+Next: <a href="#ntpdc-config" accesskey="n" rel="next">ntpdc config</a>, Previous: <a href="#ntpdc-showpeers" accesskey="p" rel="prev">ntpdc showpeers</a>, Up: <a href="#ntpdc-Invocation" accesskey="u" rel="up">ntpdc Invocation</a> &nbsp; </p>
+</div>
+<a name="unconnected-option-_0028_002du_0029"></a>
+<h4 class="subsection">1.1.10 unconnected option (-u)</h4>
+<a name="index-ntpdc_002dunconnected"></a>
+
+<p>This is the &ldquo;use unconnected udp to communicate with ntpd (default on windows)&rdquo; option.
+Open an unconnected UDP association to ntpd (the default
+on Windows).
 </p>
 
 <hr>
 <a name="ntpdc-config"></a>
 <div class="header">
 <p>
-Next: <a href="#ntpdc-exit-status" accesskey="n" rel="next">ntpdc exit status</a>, Previous: <a href="#ntpdc-showpeers" accesskey="p" rel="prev">ntpdc showpeers</a>, Up: <a href="#ntpdc-Invocation" accesskey="u" rel="up">ntpdc Invocation</a> &nbsp; </p>
+Next: <a href="#ntpdc-exit-status" accesskey="n" rel="next">ntpdc exit status</a>, Previous: <a href="#ntpdc-unconnected" accesskey="p" rel="prev">ntpdc unconnected</a>, Up: <a href="#ntpdc-Invocation" accesskey="u" rel="up">ntpdc Invocation</a> &nbsp; </p>
 </div>
 <a name="presetting_002fconfiguring-ntpdc"></a>
-<h4 class="subsection">1.1.10 presetting/configuring ntpdc</h4>
+<h4 class="subsection">1.1.11 presetting/configuring ntpdc</h4>
 
 <p>Any option that is not marked as <i>not presettable</i> may be preset by
 loading values from configuration (&quot;rc&quot; or &quot;ini&quot;) files, and values from environment variables named <code>NTPDC</code> and <code>NTPDC_&lt;OPTION_NAME&gt;</code>.  <code>&lt;OPTION_NAME&gt;</code> must be one of
@@ -506,7 +522,7 @@ Only the first letter of the argument is examined:
 Next: <a href="#ntpdc-Usage" accesskey="n" rel="next">ntpdc Usage</a>, Previous: <a href="#ntpdc-config" accesskey="p" rel="prev">ntpdc config</a>, Up: <a href="#ntpdc-Invocation" accesskey="u" rel="up">ntpdc Invocation</a> &nbsp; </p>
 </div>
 <a name="ntpdc-exit-status-1"></a>
-<h4 class="subsection">1.1.11 ntpdc exit status</h4>
+<h4 class="subsection">1.1.12 ntpdc exit status</h4>
 
 <p>One of the following exit values will be returned:
 </p><dl compact="compact">
@@ -531,7 +547,7 @@ it to autogen-users@lists.sourceforge.net.  Thank you.
 Next: <a href="#ntpdc-See-Also" accesskey="n" rel="next">ntpdc See Also</a>, Previous: <a href="#ntpdc-exit-status" accesskey="p" rel="prev">ntpdc exit status</a>, Up: <a href="#ntpdc-Invocation" accesskey="u" rel="up">ntpdc Invocation</a> &nbsp; </p>
 </div>
 <a name="ntpdc-Usage-1"></a>
-<h4 class="subsection">1.1.12 ntpdc Usage</h4>
+<h4 class="subsection">1.1.13 ntpdc Usage</h4>
 <hr>
 <a name="ntpdc-See-Also"></a>
 <div class="header">
@@ -539,7 +555,7 @@ Next: <a href="#ntpdc-See-Also" accesskey="n" rel="next">ntpdc See Also</a>, Pre
 Next: <a href="#ntpdc-Authors" accesskey="n" rel="next">ntpdc Authors</a>, Previous: <a href="#ntpdc-Usage" accesskey="p" rel="prev">ntpdc Usage</a>, Up: <a href="#ntpdc-Invocation" accesskey="u" rel="up">ntpdc Invocation</a> &nbsp; </p>
 </div>
 <a name="ntpdc-See-Also-1"></a>
-<h4 class="subsection">1.1.13 ntpdc See Also</h4>
+<h4 class="subsection">1.1.14 ntpdc See Also</h4>
 <hr>
 <a name="ntpdc-Authors"></a>
 <div class="header">
@@ -547,7 +563,7 @@ Next: <a href="#ntpdc-Authors" accesskey="n" rel="next">ntpdc Authors</a>, Previ
 Next: <a href="#ntpdc-Bugs" accesskey="n" rel="next">ntpdc Bugs</a>, Previous: <a href="#ntpdc-See-Also" accesskey="p" rel="prev">ntpdc See Also</a>, Up: <a href="#ntpdc-Invocation" accesskey="u" rel="up">ntpdc Invocation</a> &nbsp; </p>
 </div>
 <a name="ntpdc-Authors-1"></a>
-<h4 class="subsection">1.1.14 ntpdc Authors</h4>
+<h4 class="subsection">1.1.15 ntpdc Authors</h4>
 <hr>
 <a name="ntpdc-Bugs"></a>
 <div class="header">
@@ -555,7 +571,7 @@ Next: <a href="#ntpdc-Bugs" accesskey="n" rel="next">ntpdc Bugs</a>, Previous: <
 Previous: <a href="#ntpdc-Authors" accesskey="p" rel="prev">ntpdc Authors</a>, Up: <a href="#ntpdc-Invocation" accesskey="u" rel="up">ntpdc Invocation</a> &nbsp; </p>
 </div>
 <a name="ntpdc-Bugs-1"></a>
-<h4 class="subsection">1.1.15 ntpdc Bugs</h4>
+<h4 class="subsection">1.1.16 ntpdc Bugs</h4>
 
 <hr>
 <a name="Usage"></a>
index edacdc31c925bbb7d95393feb588e12fda31b92e..062f1e77238592e58fb617396e819efb3716b428 100644 (file)
 .ds B-Font B
 .ds I-Font I
 .ds R-Font R
-.TH ntpdc @NTPDC_MS@ "26 Jun 2022" "4.2.8p15" "User Commands"
+.TH ntpdc @NTPDC_MS@ "27 Jun 2022" "4.2.8p15" "User Commands"
 .\"
 .\" EDIT THIS FILE WITH CAUTION (in-mem file)
 .\"
-.\" It has been AutoGen-ed June 26, 2022 at 05:34:10 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed June 27, 2022 at 12:01:03 AM by AutoGen 5.18.5
 .\" From the definitions ntpdc-opts.def
 .\" and the template file agman-cmd.tpl
 .SH NAME
@@ -107,6 +107,12 @@ command.
 Print a list of the peers known to the server as well as a summary
 of their state. This is equivalent to the 'dmpeers' interactive command.
 .TP
+.NOP \f\*[B-Font]\-u\f[], \f\*[B-Font]\-\-unconnected\f[]
+Use unconnected UDP to communicate with ntpd (default on Windows).
+.sp
+Open an unconnected UDP association to ntpd (the default
+on Windows).
+.TP
 .NOP \f\*[B-Font]\-\&?\f[], \f\*[B-Font]\-\-help\f[]
 Display usage information and exit.
 .TP
index 36585a31843d2c110da66cebce7d3c77a66842ec..edeba408882a0b656e6f84278cca46c50926439f 100644 (file)
@@ -1,9 +1,9 @@
-.Dd June 26 2022
+.Dd June 27 2022
 .Dt NTPDC @NTPDC_MS@ User Commands
 .Os
 .\"  EDIT THIS FILE WITH CAUTION  (ntpdc-opts.mdoc)
 .\"
-.\"  It has been AutoGen-ed  June 26, 2022 at 05:34:07 AM by AutoGen 5.18.5
+.\"  It has been AutoGen-ed  June 27, 2022 at 12:01:00 AM by AutoGen 5.18.5
 .\"  From the definitions    ntpdc-opts.def
 .\"  and the template file   agmdoc-cmd.tpl
 .Sh NAME
@@ -84,6 +84,11 @@ command.
 .sp
 Print a list of the peers known to the server as well as a summary
 of their state. This is equivalent to the 'dmpeers' interactive command.
+.It  Fl u , Fl \-unconnected 
+Use unconnected UDP to communicate with ntpd (default on Windows).
+.sp
+Open an unconnected UDP association to ntpd (the default
+on Windows).
 .It Fl \&? , Fl \-help
 Display usage information and exit.
 .It Fl \&! , Fl \-more\-help
index 959ef86c486bdc339edf993d4649ed0cabc0684e..92fe4837a867e7e50f3b9eb5fd32e5acfd3ced25 100644 (file)
@@ -6,7 +6,7 @@
 #
 # EDIT THIS FILE WITH CAUTION  (invoke-ntpq.texi)
 #
-# It has been AutoGen-ed  June 26, 2022 at 05:34:19 AM by AutoGen 5.18.5
+# It has been AutoGen-ed  June 27, 2022 at 12:01:13 AM by AutoGen 5.18.5
 # From the definitions    ntpq-opts.def
 # and the template file   agtexi-cmd.tpl
 @end ignore
@@ -923,6 +923,7 @@ This software is released under the NTP license, <http://ntp.org/license>.
 * ntpq old-rv::                 old-rv option
 * ntpq peers::                  peers option (-p)
 * ntpq refid::                  refid option (-r)
+* ntpq unconnected::            unconnected option (-u)
 * ntpq wide::                   wide option (-w)
 * ntpq config::                 presetting/configuring ntpq
 * ntpq exit status::            exit status
@@ -966,6 +967,7 @@ Usage:  ntpq [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]... [ host ...]
    -p no  peers          Print a list of the peers
                                 - prohibits the option 'interactive'
    -r KWd refid          Set default display type for S2+ refids
+   -u no  unconnected    Use unconnected UDP to communicate with ntpd (default on Windows)
    -w no  wide           Display the full 'remote' value
       opt version        output version information and exit
    -? no  help           display extended usage information and exit
@@ -1115,6 +1117,13 @@ The available keywords are:
 or their numeric equivalent.@end itemize
 
 Set the default display format for S2+ refids.
+@node ntpq unconnected
+@subsection unconnected option (-u)
+@cindex ntpq-unconnected
+
+This is the ``use unconnected udp to communicate with ntpd (default on windows)'' option.
+Open an unconnected UDP association to ntpd (the default
+on Windows).
 @node ntpq wide
 @subsection wide option (-w)
 @cindex ntpq-wide
index 81df825e0a07a6502c8e1fad05066ba73742933d..8ecbff4e1b0851604b89af498b449b8e7d492cdf 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *  EDIT THIS FILE WITH CAUTION  (ntpq-opts.c)
  *
- *  It has been AutoGen-ed  June 26, 2022 at 05:41:46 AM by AutoGen 5.18.5
+ *  It has been AutoGen-ed  June 27, 2022 at 12:01:04 AM by AutoGen 5.18.5
  *  From the definitions    ntpq-opts.def
  *  and the template file   options
  *
@@ -68,7 +68,7 @@ extern FILE * option_usage_fp;
 /**
  *  static const strings for ntpq options
  */
-static char const ntpq_opt_strs[1977] =
+static char const ntpq_opt_strs[2067] =
 /*     0 */ "ntpq 4.2.8p15\n"
             "Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation, all rights reserved.\n"
             "This is free software. It is licensed for use, modification and\n"
@@ -116,30 +116,33 @@ static char const ntpq_opt_strs[1977] =
 /*  1435 */ "Set default display type for S2+ refids\0"
 /*  1475 */ "REFID\0"
 /*  1481 */ "refid\0"
-/*  1487 */ "Display the full 'remote' value\0"
-/*  1519 */ "WIDE\0"
-/*  1524 */ "wide\0"
-/*  1529 */ "display extended usage information and exit\0"
-/*  1573 */ "help\0"
-/*  1578 */ "extended usage information passed thru pager\0"
-/*  1623 */ "more-help\0"
-/*  1633 */ "output version information and exit\0"
-/*  1669 */ "version\0"
-/*  1677 */ "save the option state to a config file\0"
-/*  1716 */ "save-opts\0"
-/*  1726 */ "load options from a config file\0"
-/*  1758 */ "LOAD_OPTS\0"
-/*  1768 */ "no-load-opts\0"
-/*  1781 */ "no\0"
-/*  1784 */ "NTPQ\0"
-/*  1789 */ "ntpq - standard NTP query program - Ver. 4.2.8p15\n"
+/*  1487 */ "Use unconnected UDP to communicate with ntpd (default on Windows)\0"
+/*  1553 */ "UNCONNECTED\0"
+/*  1565 */ "unconnected\0"
+/*  1577 */ "Display the full 'remote' value\0"
+/*  1609 */ "WIDE\0"
+/*  1614 */ "wide\0"
+/*  1619 */ "display extended usage information and exit\0"
+/*  1663 */ "help\0"
+/*  1668 */ "extended usage information passed thru pager\0"
+/*  1713 */ "more-help\0"
+/*  1723 */ "output version information and exit\0"
+/*  1759 */ "version\0"
+/*  1767 */ "save the option state to a config file\0"
+/*  1806 */ "save-opts\0"
+/*  1816 */ "load options from a config file\0"
+/*  1848 */ "LOAD_OPTS\0"
+/*  1858 */ "no-load-opts\0"
+/*  1871 */ "no\0"
+/*  1874 */ "NTPQ\0"
+/*  1879 */ "ntpq - standard NTP query program - Ver. 4.2.8p15\n"
             "Usage:  %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [ host ...]\n\0"
-/*  1909 */ "$HOME\0"
-/*  1915 */ ".\0"
-/*  1917 */ ".ntprc\0"
-/*  1924 */ "http://bugs.ntp.org, bugs@ntp.org\0"
-/*  1958 */ "ntpq 4.2.8p15\0"
-/*  1972 */ "hash";
+/*  1999 */ "$HOME\0"
+/*  2005 */ ".\0"
+/*  2007 */ ".ntprc\0"
+/*  2014 */ "http://bugs.ntp.org, bugs@ntp.org\0"
+/*  2048 */ "ntpq 4.2.8p15\0"
+/*  2062 */ "hash";
 
 /**
  *  ipv4 option description with
@@ -283,26 +286,38 @@ static int const aPeersCantList[] = {
 #define REFID_FLAGS     (OPTST_DISABLED \
         | OPTST_SET_ARGTYPE(OPARG_TYPE_ENUMERATION))
 
+/**
+ *  unconnected option description:
+ */
+/** Descriptive text for the unconnected option */
+#define UNCONNECTED_DESC      (ntpq_opt_strs+1487)
+/** Upper-cased name for the unconnected option */
+#define UNCONNECTED_NAME      (ntpq_opt_strs+1553)
+/** Name string for the unconnected option */
+#define UNCONNECTED_name      (ntpq_opt_strs+1565)
+/** Compiled in flag settings for the unconnected option */
+#define UNCONNECTED_FLAGS     (OPTST_DISABLED)
+
 /**
  *  wide option description:
  */
 /** Descriptive text for the wide option */
-#define WIDE_DESC      (ntpq_opt_strs+1487)
+#define WIDE_DESC      (ntpq_opt_strs+1577)
 /** Upper-cased name for the wide option */
-#define WIDE_NAME      (ntpq_opt_strs+1519)
+#define WIDE_NAME      (ntpq_opt_strs+1609)
 /** Name string for the wide option */
-#define WIDE_name      (ntpq_opt_strs+1524)
+#define WIDE_name      (ntpq_opt_strs+1614)
 /** Compiled in flag settings for the wide option */
 #define WIDE_FLAGS     (OPTST_DISABLED)
 
 /*
  *  Help/More_Help/Version option descriptions:
  */
-#define HELP_DESC       (ntpq_opt_strs+1529)
-#define HELP_name       (ntpq_opt_strs+1573)
+#define HELP_DESC       (ntpq_opt_strs+1619)
+#define HELP_name       (ntpq_opt_strs+1663)
 #ifdef HAVE_WORKING_FORK
-#define MORE_HELP_DESC  (ntpq_opt_strs+1578)
-#define MORE_HELP_name  (ntpq_opt_strs+1623)
+#define MORE_HELP_DESC  (ntpq_opt_strs+1668)
+#define MORE_HELP_name  (ntpq_opt_strs+1713)
 #define MORE_HELP_FLAGS (OPTST_IMM | OPTST_NO_INIT)
 #else
 #define MORE_HELP_DESC  HELP_DESC
@@ -315,14 +330,14 @@ static int const aPeersCantList[] = {
 #  define VER_FLAGS     (OPTST_SET_ARGTYPE(OPARG_TYPE_STRING) | \
                          OPTST_ARG_OPTIONAL | OPTST_IMM | OPTST_NO_INIT)
 #endif
-#define VER_DESC        (ntpq_opt_strs+1633)
-#define VER_name        (ntpq_opt_strs+1669)
-#define SAVE_OPTS_DESC  (ntpq_opt_strs+1677)
-#define SAVE_OPTS_name  (ntpq_opt_strs+1716)
-#define LOAD_OPTS_DESC     (ntpq_opt_strs+1726)
-#define LOAD_OPTS_NAME     (ntpq_opt_strs+1758)
-#define NO_LOAD_OPTS_name  (ntpq_opt_strs+1768)
-#define LOAD_OPTS_pfx      (ntpq_opt_strs+1781)
+#define VER_DESC        (ntpq_opt_strs+1723)
+#define VER_name        (ntpq_opt_strs+1759)
+#define SAVE_OPTS_DESC  (ntpq_opt_strs+1767)
+#define SAVE_OPTS_name  (ntpq_opt_strs+1806)
+#define LOAD_OPTS_DESC     (ntpq_opt_strs+1816)
+#define LOAD_OPTS_NAME     (ntpq_opt_strs+1848)
+#define NO_LOAD_OPTS_name  (ntpq_opt_strs+1858)
+#define LOAD_OPTS_pfx      (ntpq_opt_strs+1871)
 #define LOAD_OPTS_name     (NO_LOAD_OPTS_name + 3)
 /**
  *  Declare option callback procedures
@@ -463,8 +478,20 @@ static tOptDesc optDesc[OPTION_CT] = {
      /* desc, NAME, name */ REFID_DESC, REFID_NAME, REFID_name,
      /* disablement strs */ NULL, NULL },
 
-  {  /* entry idx, value */ 10, VALUE_OPT_WIDE,
-     /* equiv idx, value */ 10, VALUE_OPT_WIDE,
+  {  /* entry idx, value */ 10, VALUE_OPT_UNCONNECTED,
+     /* equiv idx, value */ 10, VALUE_OPT_UNCONNECTED,
+     /* equivalenced to  */ NO_EQUIVALENT,
+     /* min, max, act ct */ 0, 1, 0,
+     /* opt state flags  */ UNCONNECTED_FLAGS, 0,
+     /* last opt argumnt */ { NULL }, /* --unconnected */
+     /* arg list/cookie  */ NULL,
+     /* must/cannot opts */ NULL, NULL,
+     /* option proc      */ NULL,
+     /* desc, NAME, name */ UNCONNECTED_DESC, UNCONNECTED_NAME, UNCONNECTED_name,
+     /* disablement strs */ NULL, NULL },
+
+  {  /* entry idx, value */ 11, VALUE_OPT_WIDE,
+     /* equiv idx, value */ 11, VALUE_OPT_WIDE,
      /* equivalenced to  */ NO_EQUIVALENT,
      /* min, max, act ct */ 0, 1, 0,
      /* opt state flags  */ WIDE_FLAGS, 0,
@@ -543,24 +570,24 @@ static tOptDesc optDesc[OPTION_CT] = {
 
 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
 /** Reference to the upper cased version of ntpq. */
-#define zPROGNAME       (ntpq_opt_strs+1784)
+#define zPROGNAME       (ntpq_opt_strs+1874)
 /** Reference to the title line for ntpq usage. */
-#define zUsageTitle     (ntpq_opt_strs+1789)
+#define zUsageTitle     (ntpq_opt_strs+1879)
 /** ntpq configuration file name. */
-#define zRcName         (ntpq_opt_strs+1917)
+#define zRcName         (ntpq_opt_strs+2007)
 /** Directories to search for ntpq config files. */
 static char const * const apzHomeList[3] = {
-    ntpq_opt_strs+1909,
-    ntpq_opt_strs+1915,
+    ntpq_opt_strs+1999,
+    ntpq_opt_strs+2005,
     NULL };
 /** The ntpq program bug email address. */
-#define zBugsAddr       (ntpq_opt_strs+1924)
+#define zBugsAddr       (ntpq_opt_strs+2014)
 /** Clarification/explanation of what ntpq does. */
 #define zExplain        (NULL)
 /** Extra detail explaining what ntpq does. */
 #define zDetail         (NULL)
 /** The full version string for ntpq. */
-#define zFullVersion    (ntpq_opt_strs+1958)
+#define zFullVersion    (ntpq_opt_strs+2048)
 /* extracted from optcode.tlib near line 364 */
 
 #if defined(ENABLE_NLS)
@@ -633,7 +660,7 @@ doOptRefid(tOptions* pOptions, tOptDesc* pOptDesc)
 
 /* extracted from optmain.tlib near line 945 */
     static char const * const names[2] = {
-        ntpq_opt_strs+1972, ntpq_opt_strs+1041 };
+        ntpq_opt_strs+2062, ntpq_opt_strs+1041 };
 
     if (pOptions <= OPTPROC_EMIT_LIMIT) {
         (void) optionEnumerationVal(pOptions, pOptDesc, names, 2);
@@ -706,7 +733,7 @@ tOptions ntpqOptions = {
       NO_EQUIVALENT, /* '-#' option index */
       NO_EQUIVALENT /* index of default opt */
     },
-    16 /* full option count */, 11 /* user option count */,
+    17 /* full option count */, 12 /* user option count */,
     ntpq_full_usage, ntpq_short_usage,
     NULL, NULL,
     PKGDATADIR, ntpq_packager_info
@@ -891,6 +918,9 @@ implied warranty.\n"));
   /* referenced via ntpqOptions.pOptDesc->pzText */
   puts(_("Set default display type for S2+ refids"));
 
+  /* referenced via ntpqOptions.pOptDesc->pzText */
+  puts(_("Use unconnected UDP to communicate with ntpd (default on Windows)"));
+
   /* referenced via ntpqOptions.pOptDesc->pzText */
   puts(_("Display the full 'remote' value"));
 
index f34653d1281f02ff7b7d844e6009247169da5d98..85655a9d66cc0541b8271a57f85921265cae7fb9 100644 (file)
@@ -111,6 +111,16 @@ flag = {
        _EndOfDoc_;
 };
 
+flag = {
+    name      = unconnected;
+    value     = u;
+    descrip   = "Use unconnected UDP to communicate with ntpd (default on Windows)";
+    doc = <<-  _EndOfDoc_
+       Open an unconnected UDP association to ntpd (the default
+       on Windows).
+       _EndOfDoc_;
+};
+
 flag = {
     name      = wide;
     value     = w;
index 264c2ac6fe50d4453384e4b4529afff5889ad492..2fef0f697f2e391f2d2d5fba3fffc418250f2a82 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *  EDIT THIS FILE WITH CAUTION  (ntpq-opts.h)
  *
- *  It has been AutoGen-ed  June 26, 2022 at 05:41:46 AM by AutoGen 5.18.5
+ *  It has been AutoGen-ed  June 27, 2022 at 12:01:04 AM by AutoGen 5.18.5
  *  From the definitions    ntpq-opts.def
  *  and the template file   options
  *
@@ -74,15 +74,16 @@ typedef enum {
     INDEX_OPT_OLD_RV           =  7,
     INDEX_OPT_PEERS            =  8,
     INDEX_OPT_REFID            =  9,
-    INDEX_OPT_WIDE             = 10,
-    INDEX_OPT_VERSION          = 11,
-    INDEX_OPT_HELP             = 12,
-    INDEX_OPT_MORE_HELP        = 13,
-    INDEX_OPT_SAVE_OPTS        = 14,
-    INDEX_OPT_LOAD_OPTS        = 15
+    INDEX_OPT_UNCONNECTED      = 10,
+    INDEX_OPT_WIDE             = 11,
+    INDEX_OPT_VERSION          = 12,
+    INDEX_OPT_HELP             = 13,
+    INDEX_OPT_MORE_HELP        = 14,
+    INDEX_OPT_SAVE_OPTS        = 15,
+    INDEX_OPT_LOAD_OPTS        = 16
 } teOptIndex;
 /** count of all options for ntpq */
-#define OPTION_CT    16
+#define OPTION_CT    17
 /** ntpq version */
 #define NTPQ_VERSION       "4.2.8p15"
 /** Full ntpq version text */
@@ -179,6 +180,10 @@ typedef enum {
 #  warning undefining REFID due to option name conflict
 #  undef   REFID
 # endif
+# ifdef    UNCONNECTED
+#  warning undefining UNCONNECTED due to option name conflict
+#  undef   UNCONNECTED
+# endif
 # ifdef    WIDE
 #  warning undefining WIDE due to option name conflict
 #  undef   WIDE
@@ -194,6 +199,7 @@ typedef enum {
 # undef OLD_RV
 # undef PEERS
 # undef REFID
+# undef UNCONNECTED
 # undef WIDE
 #endif  /*  NO_OPTION_NAME_WARNINGS */
 
@@ -219,6 +225,7 @@ typedef enum {
 } te_Refid;
 #define OPT_REFID_VAL2STR(_v)    optionKeywordName(&DESC(REFID), (_v))
 #define OPT_VALUE_REFID          (DESC(REFID).optArg.argEnum)
+#define VALUE_OPT_UNCONNECTED    'u'
 #define VALUE_OPT_WIDE           'w'
 /** option flag (value) for help-value option */
 #define VALUE_OPT_HELP          '?'
index 1c6b50c35c6d0732f415982246e8091ce13d4740..19bd198d6035cae47e540caa2c9fbf1a40a9528b 100644 (file)
 .ds B-Font B
 .ds I-Font I
 .ds R-Font R
-.TH ntpq 1ntpqman "26 Jun 2022" "4.2.8p15" "User Commands"
+.TH ntpq 1ntpqman "27 Jun 2022" "4.2.8p15" "User Commands"
 .\"
 .\" EDIT THIS FILE WITH CAUTION (in-mem file)
 .\"
-.\" It has been AutoGen-ed June 26, 2022 at 05:34:20 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed June 27, 2022 at 12:01:14 AM by AutoGen 5.18.5
 .\" From the definitions ntpq-opts.def
 .\" and the template file agman-cmd.tpl
 .SH NAME
@@ -126,6 +126,12 @@ for this option is:
 .sp
 Set the default display format for S2+ refids.
 .TP
+.NOP \f\*[B-Font]\-u\f[], \f\*[B-Font]\-\-unconnected\f[]
+Use unconnected UDP to communicate with ntpd (default on Windows).
+.sp
+Open an unconnected UDP association to ntpd (the default
+on Windows).
+.TP
 .NOP \f\*[B-Font]\-w\f[], \f\*[B-Font]\-\-wide\f[]
 Display the full 'remote' value.
 .sp
index 222ffbe85cbafc52da9da04dfdd11286db372e2c..1a16e6b8b19e6bbdf733a5fa1b6bd57fb75f38bb 100644 (file)
@@ -1,9 +1,9 @@
-.Dd June 26 2022
+.Dd June 27 2022
 .Dt NTPQ 1ntpqmdoc User Commands
 .Os
 .\"  EDIT THIS FILE WITH CAUTION  (ntpq-opts.mdoc)
 .\"
-.\"  It has been AutoGen-ed  June 26, 2022 at 05:34:18 AM by AutoGen 5.18.5
+.\"  It has been AutoGen-ed  June 27, 2022 at 12:01:11 AM by AutoGen 5.18.5
 .\"  From the definitions    ntpq-opts.def
 .\"  and the template file   agmdoc-cmd.tpl
 .Sh NAME
@@ -103,6 +103,11 @@ for this option is:
  ipv4
 .sp
 Set the default display format for S2+ refids.
+.It  Fl u , Fl \-unconnected 
+Use unconnected UDP to communicate with ntpd (default on Windows).
+.sp
+Open an unconnected UDP association to ntpd (the default
+on Windows).
 .It  Fl w , Fl \-wide 
 Display the full 'remote' value.
 .sp
index 2714e380804ad71a1a1e8f52e99cd1dc12168e7a..7d92ca0bc9a4ffb1c280b23f911d869193763c02 100644 (file)
 .ds B-Font B
 .ds I-Font I
 .ds R-Font R
-.TH ntpq @NTPQ_MS@ "26 Jun 2022" "4.2.8p15" "User Commands"
+.TH ntpq @NTPQ_MS@ "27 Jun 2022" "4.2.8p15" "User Commands"
 .\"
 .\" EDIT THIS FILE WITH CAUTION (in-mem file)
 .\"
-.\" It has been AutoGen-ed June 26, 2022 at 05:34:20 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed June 27, 2022 at 12:01:14 AM by AutoGen 5.18.5
 .\" From the definitions ntpq-opts.def
 .\" and the template file agman-cmd.tpl
 .SH NAME
@@ -126,6 +126,12 @@ for this option is:
 .sp
 Set the default display format for S2+ refids.
 .TP
+.NOP \f\*[B-Font]\-u\f[], \f\*[B-Font]\-\-unconnected\f[]
+Use unconnected UDP to communicate with ntpd (default on Windows).
+.sp
+Open an unconnected UDP association to ntpd (the default
+on Windows).
+.TP
 .NOP \f\*[B-Font]\-w\f[], \f\*[B-Font]\-\-wide\f[]
 Display the full 'remote' value.
 .sp
index cf150e4af6563736e79374811b6fa7fc1f965f42..c0a137675025ff353cc74390a1f8ed106566aa8d 100644 (file)
@@ -1,9 +1,9 @@
-.Dd June 26 2022
+.Dd June 27 2022
 .Dt NTPQ @NTPQ_MS@ User Commands
 .Os
 .\"  EDIT THIS FILE WITH CAUTION  (ntpq-opts.mdoc)
 .\"
-.\"  It has been AutoGen-ed  June 26, 2022 at 05:34:18 AM by AutoGen 5.18.5
+.\"  It has been AutoGen-ed  June 27, 2022 at 12:01:11 AM by AutoGen 5.18.5
 .\"  From the definitions    ntpq-opts.def
 .\"  and the template file   agmdoc-cmd.tpl
 .Sh NAME
@@ -103,6 +103,11 @@ for this option is:
  ipv4
 .sp
 Set the default display format for S2+ refids.
+.It  Fl u , Fl \-unconnected 
+Use unconnected UDP to communicate with ntpd (default on Windows).
+.sp
+Open an unconnected UDP association to ntpd (the default
+on Windows).
 .It  Fl w , Fl \-wide 
 Display the full 'remote' value.
 .sp