ntpq output truncates IPv6 addresses
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NTP |
Confirmed
|
Medium
|
|||
ntp (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: ntp
Running ntpq with the -n (numeric) flag causes ntpq to print raw IP addresses rather than perform DNS lookups. When an IPv6 peer is present, the IPv6 address is truncated, hiding the right-most digits.
Proper operation would be to show the entire IPv6 address.
Example output:
# ntpq -n
ntpq> peers
remote refid st t when poll reach delay offset jitter
=======
+2001:1111:111:2 69.10.36.6 3 u 15 64 377 0.304 0.668 1.072
+91.189.94.4 193.79.237.14 2 u 23 128 377 108.365 -1.872 2.214
The first peer (actual address changed somewhat but formatting unaltered) has been truncated after ":2".
Changed in ntp: | |
status: | Unknown → Confirmed |
tags: | added: ipv6 |
Changed in ntp (Ubuntu): | |
importance: | Undecided → Low |
importance: | Low → Medium |
Changed in ntp: | |
importance: | Unknown → Medium |
Forwarded from Ubuntu bug report #325111:
'Running ntpq with the -n (numeric) flag causes ntpq to print raw IP addresses
rather than perform DNS lookups. When an IPv6 peer is present, the IPv6 address
is truncated, hiding the right-most digits.
Proper operation would be to show the entire IPv6 address.
Example output:
# ntpq -n ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= =
ntpq> peers
remote refid st t when poll reach delay offset jitter
=======
+2001:1111:111:2 69.10.36.6 3 u 15 64 377 0.304 0.668 1.072
+91.189.94.4 193.79.237.14 2 u 23 128 377 108.365 -1.872 2.214
The first peer (actual address changed somewhat but formatting unaltered) has
been truncated after ":2".'