[Bug 299620] netstat: invalid libxo output for tcp statistics using xml mode
Date: Mon, 19 Oct 2026 23:11:24 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299620
Bug ID: 299620
Summary: netstat: invalid libxo output for tcp statistics using
xml mode
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: bugs@FreeBSD.org
Reporter: john@saltant.com
Summary
=======
The libxo container title, "TCP connection count by state", when rendered as
XML, is invalid as an element name.
Expected
========
% netstat -s -p tcp --libxo xml | xmllint - > /dev/null
# no output
Actual
======
% netstat -s -p tcp --libxo xml | xmllint - >/dev/null
-:1: parser error : Specification mandates value for attribute connection
sponds><tw_recycles>0</tw_recycles><tw_resets>0</tw_resets></tw><TCP connection
^
-:1: parser error : attributes construct error
sponds><tw_recycles>0</tw_recycles><tw_resets>0</tw_resets></tw><TCP connection
^
-:1: parser error : Couldn't find end of Start Tag TCP line 1
sponds><tw_recycles>0</tw_recycles><tw_resets>0</tw_resets></tw><TCP connection
^
-:1: parser error : expected '>'
G><LAST_ACK>0</LAST_ACK><FIN_WAIT_2>0</FIN_WAIT_2><TIME_WAIT>0</TIME_WAIT></TCP
^
-:1: parser error : Opening and ending tag mismatch: tcp line 1 and TCP
G><LAST_ACK>0</LAST_ACK><FIN_WAIT_2>0</FIN_WAIT_2><TIME_WAIT>0</TIME_WAIT></TCP
^
-:1: parser error : Opening and ending tag mismatch: statistics line 1 and tcp
T_2>0</FIN_WAIT_2><TIME_WAIT>0</TIME_WAIT></TCP connection count by
state></tcp>
^
--
You are receiving this mail because:
You are the assignee for the bug.