🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: muc.lists.freebsd.bugs
4 messages
4 total messages Started by bugzilla-noreply Mon, 19 Oct 2026 23:11
[Bug 299620] netstat: invalid libxo output for tcp statistics using xml mode
#152
Author: bugzilla-noreply
Date: Mon, 19 Oct 2026 23:11
92 lines
5330 bytes
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.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 299620] netstat: invalid libxo output for tcp statistics using xml mode
#153
Author: bugzilla-noreply
Date: Mon, 19 Oct 2026 23:17
28 lines
3131 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299620

John W. O'Brien <john@saltant.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #275983|                            |maintainer-approval?
              Flags|                            |

--- Comment #1 from John W. O'Brien <john@saltant.com> ---
Created attachment 275983
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=275983&action=edit
netstat: emit valid XML from tcp statistics

I acknowledge that the MFC to stable/14 and stable/15 might be inappropriate
since this changes existing output upon which some might rely. However, I am
erring on the side of back-porting the bug fix and welcome guidance to the
contrary.

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 299620] netstat: invalid libxo output for tcp statistics using xml mode
#427
Author: bugzilla-noreply
Date: Thu, 12 Nov 2026 01:57
32 lines
3189 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299620

--- Comment #3 from Gleb Smirnoff <glebius@FreeBSD.org> ---
Phil, can you please say your expert opinion here. I definitely added the
problem to netstat, but the question is about general policy of libxo. What is
allowed and what is not. I quickly went through documentation and didn't find
anything on that. It seems there could be two options here:

1) Common denominator mode: libxo users shall use container (and other
features) names that would be compatible with all formats supported by libxo.
That would imply that adding a new output format may break existing programs.

2) Adaptation mode: libxo would reformat arguments to make them compatible with
certain output modes, particularly in XML output would substitute spaces to
dashes.

I'm fine with accepting John's patch, just want to learn for the future what
are the restrictions on libxo string arguments.

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 299620] netstat: invalid libxo output for tcp statistics using xml mode
#429
Author: bugzilla-noreply
Date: Thu, 12 Nov 2026 13:18
17 lines
2667 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299620

--- Comment #4 from Dag-Erling Smørgrav <des@FreeBSD.org> ---
Yes, I was about to suggest we could patch libxo to transform names that aren't
appropriate for XML.  This would fix the problem with netstat XML output
without breaking backward compatibility for people using other formats where
"TCP connection count by state" is a valid key.

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads