opnsense-src/usr.bin/sockstat
Alan Somers d888317796 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
2025-08-12 10:38:25 -06:00
..
tests sockstat: fix port parsing after libxo integration 2025-08-12 10:38:25 -06:00
main.c sockstat: fix port parsing after libxo integration 2025-08-12 10:38:25 -06:00
Makefile sockstat: fix port parsing after libxo integration 2025-08-12 10:38:25 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
sockstat.1 sockstat: add libxo support 2025-07-30 14:27:14 -06:00
sockstat.c sockstat: fix port parsing after libxo integration 2025-08-12 10:38:25 -06:00
sockstat.h sockstat: fix port parsing after libxo integration 2025-08-12 10:38:25 -06:00