Skip to content

Commit 3d3b2f4

Browse files
committed
Explained about -n option not useful for SNTP
1 parent 7519143 commit 3d3b2f4

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

docs/create-man.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
#
66
# This script can be used under BSD-3-Clause license.
77

8-
T2M_DATE="29 Sep 2019"
8+
T2M_DATE="14 Jun 2021"
99
T2M_NAME=rdate
10-
T2M_VERSION=1.10
10+
T2M_VERSION=1.10.1
1111
T2M_LEVEL=8
1212
T2M_DESC="set the system's date from a remote host"
1313

docs/rdate.8

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.\" Text automatically generated by txt2man
2-
.TH rdate 8 "29 Sep 2019" "rdate-1.10" "set the system's date from a remote host"
2+
.TH rdate 8 "14 Jun 2021" "rdate-1.10.1" "set the system's date from a remote host"
33
.SH NAME
44
\fBrdate \fP- set the system's date from a remote host
55
\fB
@@ -48,11 +48,12 @@ parameter) or (recommended) check with a local radio controlled watch or phone s
4848
.TP
4949
.B
5050
\fB-n\fP
51-
Use SNTP (old RFC 2030, currently RFC 5905) instead of the RFC 868 time protocol.
51+
Use SNTP (old RFC 2030, currently RFC 5905) instead of the RFC 868 time protocol. SNTP will always
52+
use UDP protocol and its default \fIport\fP is 123.
5253
.TP
5354
.B
5455
\fB-o\fP \fIport\fP
55-
Use \fIport\fP '\fIport\fP' instead of \fIport\fP 37.
56+
Use \fIport\fP '\fIport\fP' instead of \fIport\fP 37 (RFC 868) or 123 (SNTP, RFC 5905).
5657
.TP
5758
.B
5859
\fB-p\fP
@@ -64,7 +65,7 @@ Do not print the time.
6465
.TP
6566
.B
6667
\fB-u\fP
67-
Use UDP instead of TCP as transport.
68+
Use UDP instead of TCP as transport (for RFC 868 only; see \fB-n\fP option).
6869
.TP
6970
.B
7071
\fB-t\fP \fImsec\fP

docs/rdate.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@ OPTIONS
2323
using the RFC 868 protocol, use this option only if the server does not correctly account for leap
2424
seconds. You can determine if you need this parameter if you sync against an NTP server (with this
2525
parameter) or (recommended) check with a local radio controlled watch or phone service.
26-
-n Use SNTP (old RFC 2030, currently RFC 5905) instead of the RFC 868 time protocol.
27-
-o port Use port 'port' instead of port 37.
26+
-n Use SNTP (old RFC 2030, currently RFC 5905) instead of the RFC 868 time protocol. SNTP will always
27+
use UDP protocol and its default port is 123.
28+
-o port Use port 'port' instead of port 37 (RFC 868) or 123 (SNTP, RFC 5905).
2829
-p Do not set, just print the remote time.
2930
-s Do not print the time.
30-
-u Use UDP instead of TCP as transport.
31+
-u Use UDP instead of TCP as transport (for RFC 868 only; see -n option).
3132
-t msec Does not set time if it took more than msec milliseconds to fetch time from network.
3233
-v Verbose output. Always show the adjustment.
3334

0 commit comments

Comments
 (0)