<html lang='en'>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<title>
GitLab
</title>
</meta>
</head>
<style>
img {
max-width: 100%;
height: auto;
}
p.details {
font-style:italic;
color:#777
}
.footer p {
font-size:small;
color:#777
}
pre.commit-message {
white-space: pre-wrap;
}
.file-stats a {
text-decoration: none;
}
.file-stats .new-file {
color: #090;
}
.file-stats .deleted-file {
color: #B00;
}
</style>
<body>
<div class='content'>
<h3>Hal Murray pushed to branch master at <a href="https://gitlab.com/NTPsec/ntpsec">NTPsec / ntpsec</a></h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://gitlab.com/NTPsec/ntpsec/commit/26b2cc9c6d6234aab8985065329abb60bd6edf17">26b2cc9c</a></strong>
<div>
<span>by Hal Murray</span>
<i>at 2015-11-21T19:24:51Z</i>
</div>
<pre class='commit-message'>A w/wide option to ntpq, update documentation.
The code was there. It was just missing from the command
line processing.</pre>
</li>
</ul>
<h4>2 changed files:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
docs/includes/ntpq-body.txt
</a>
</li>
<li class='file-stats'>
<a href='#diff-1'>
ntpq/ntpq.c
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://gitlab.com/NTPsec/ntpsec/commit/26b2cc9c6d6234aab8985065329abb60bd6edf17#diff-0'>
<strong>
docs/includes/ntpq-body.txt
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/docs/includes/ntpq-body.txt
</span><span style="color: #000000;background-color: #ddffdd">+++ b/docs/includes/ntpq-body.txt
</span><span style="color: #aaaaaa">@@ -4,7 +4,7 @@
</span>
== Synopsis ==
<span style="color: #000000;background-color: #ffdddd">-+{ntpq}+ [+-46dinp+] [+-c+ 'command'] ['host'] [...]
</span><span style="color: #000000;background-color: #ddffdd">++{ntpq}+ [+-46dinpw+] [+-c+ 'command'] ['host'] [...]
</span>
== Description ==
<span style="color: #aaaaaa">@@ -52,27 +52,38 @@ option other than +-i+ or +-n+ will cause the specified query (queries)
</span> to be sent to the indicated host(s) immediately. Otherwise, +{ntpq}+ will
attempt to read interactive format commands from the standard input.
<span style="color: #000000;background-color: #ffdddd">-+-4+::
</span><span style="color: #000000;background-color: #ddffdd">++-4+, +--ipv4+::
</span> Force DNS resolution of following host names on the command line to
the IPv4 namespace.
<span style="color: #000000;background-color: #ffdddd">-+-6+::
</span><span style="color: #000000;background-color: #ddffdd">++-6+, +--ipv6+::
</span> Force DNS resolution of following host names on the command line to
the IPv6 namespace.
<span style="color: #000000;background-color: #ffdddd">-+-c+::
</span><span style="color: #000000;background-color: #ddffdd">++-c+ cmd, +--command+=cmd::
</span> The following argument is interpreted as an interactive format command
and is added to the list of commands to be executed on the specified
host(s). Multiple +-c+ options may be given.
<span style="color: #000000;background-color: #ffdddd">-+-d+::
- Turn on debugging mode.
-+-i+::
</span><span style="color: #000000;background-color: #ddffdd">++-d+, +--debug+::
+ Increase debugging level by 1.
++-D+ num, +--set-debug-level+=num::
+ The debug level is set to the following numeric argument.
++-i+, +--interactive+::
</span> Force +{ntpq}+ to operate in interactive mode. Prompts will be written
to the standard output and commands read from the standard input.
<span style="color: #000000;background-color: #ffdddd">-+-n+::
- Output all host addresses in dotted-quad numeric format rather than
</span><span style="color: #000000;background-color: #ddffdd">++-n+, +--numeric+::
+ Output all host addresses in numeric format rather than
</span> converting to the canonical host names.
<span style="color: #000000;background-color: #ffdddd">-+-p+::
</span><span style="color: #000000;background-color: #ddffdd">++-O+, +--old-rv+::
+ Print an extra line when reading a single value with rv,
+ for example +ntpq -O -c "rv 0 frequency"+
++-p+, +--peers+::
</span> Print a list of the peers known to the server as well as a summary of
their state. This is equivalent to the +peers+ interactive command.
<span style="color: #000000;background-color: #ddffdd">++-V+, +--version+::
+ Print the version string and exit.
++-w+, +--wide+::
+ Wide mode: if the host name or IP Address doesn't fit, write the
+ full name/address and indent the next line so columns line up.
+ The default truncates the name or address.
</span>
== Internal Commands ==
</code></pre>
<br>
</li>
<li id='diff-1'>
<a href='https://gitlab.com/NTPsec/ntpsec/commit/26b2cc9c6d6234aab8985065329abb60bd6edf17#diff-1'>
<strong>
ntpq/ntpq.c
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/ntpq/ntpq.c
</span><span style="color: #000000;background-color: #ddffdd">+++ b/ntpq/ntpq.c
</span><span style="color: #aaaaaa">@@ -404,7 +404,7 @@ void clear_globals(void)
</span> #endif /* !BUILD_AS_LIB */
#endif /* NO_MAIN_ALLOWED */
<span style="color: #000000;background-color: #ffdddd">-#define ALL_OPTIONS "46c:dD:inOpV"
</span><span style="color: #000000;background-color: #ddffdd">+#define ALL_OPTIONS "46c:dD:inOpVw"
</span> static const struct option longoptions[] = {
{ "ipv4", 0, 0, '4' },
{ "ipv6", 0, 0, '6' },
<span style="color: #aaaaaa">@@ -416,6 +416,7 @@ static const struct option longoptions[] = {
</span> { "old-rv", 1, 0, 'O' },
{ "peers", 1, 0, 'p' },
{ "version", 0, 0, 'V' },
<span style="color: #000000;background-color: #ddffdd">+ { "wide", 0, 0, 'w' },
</span> { NULL, 0, 0, '\0'},
};
<span style="color: #aaaaaa">@@ -540,6 +541,8 @@ ntpqmain(
</span> opt_wide = true;
break;
default :
<span style="color: #000000;background-color: #ddffdd">+ /* chars not in table get converted to ? */
+ printf("Unknown command line switch ignored.\n");
</span> break;
} /*switch*/
}
</code></pre>
<br>
</li>
</div>
<div class='footer' style='margin-top: 10px;'>
<p>
—
<br>
<a href="https://gitlab.com/NTPsec/ntpsec/commit/26b2cc9c6d6234aab8985065329abb60bd6edf17">View it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Commit","url":"https://gitlab.com/NTPsec/ntpsec/commit/26b2cc9c6d6234aab8985065329abb60bd6edf17"}}</script>
</p>
</div>
</body>
</html>