summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorAlan Somers <asomers@FreeBSD.org>2025-08-12 10:26:02 -0600
committerAlan Somers <asomers@FreeBSD.org>2025-08-12 10:38:25 -0600
commitd888317796190bec350aea3701b8aed3bfdad4c8 (patch)
treee227936628f9ecc67cdf0b50ca863b020ef2b9d3 /etc
parentec92e61f99f62e377910a543f2446e0338aa5563 (diff)
sockstat: fix port parsing after libxo integration
parse_ports has been broken ever since 7b35b4d, and it's a sufficiently complicated function that it really deserves some unit tests. Fix it, and add tests. Refactor the code a little bit to facilitate unit tests. Chiefly, split the tested functions out of main.c into sockstat.c . PR: 288731 Fixes: 7b35b4d ("sockstat: add libxo support") Sponsored by: ConnectWise PR: https://github.com/freebsd/freebsd-src/pull/1807 Reviewed by: rido
Diffstat (limited to 'etc')
-rw-r--r--etc/mtree/BSD.tests.dist2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/mtree/BSD.tests.dist b/etc/mtree/BSD.tests.dist
index b3b2b61da143..2c25d9386032 100644
--- a/etc/mtree/BSD.tests.dist
+++ b/etc/mtree/BSD.tests.dist
@@ -1205,6 +1205,8 @@
..
seq
..
+ sockstat
+ ..
soelim
..
sort