When displaying netstat details with libxo in JSON or XML modes, the value conversion for tcp6 and udp6 port numbers drops last digit. For example, in output of netstat -an --libxo=json, port 514 for udp6 is shown as 51, and tcp6 port 22 is shown as 2. This same issue applies to --libxo=xml but not to for example html output.
+ Marcel, just in case he has some clue.
take this.
A commit references this bug: Author: ume Date: Thu Jan 5 11:44:28 UTC 2017 New revision: 311426 URL: https://svnweb.freebsd.org/changeset/base/311426 Log: When displaying netstat details with libxo in JSON or XML modes, the value conversion for tcp6 and udp6 port numbers drops last digit. PR: 215682 MFC after: 3 days Changes: head/usr.bin/netstat/inet6.c
A commit references this bug: Author: ume Date: Sun Jan 8 08:53:34 UTC 2017 New revision: 311674 URL: https://svnweb.freebsd.org/changeset/base/311674 Log: MFC r311426: When displaying netstat details with libxo in JSON or XML modes, the value conversion for tcp6 and udp6 port numbers drops last digit. PR: 215682 Changes: _U stable/11/ stable/11/usr.bin/netstat/inet6.c
Thank you for your report. It should be fixed now.