Page MenuHomeFreeBSD

netstat: fix a segfault with --libxo
ClosedPublic

Authored by asomers on Jan 6 2026, 10:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Feb 28, 3:21 PM
Unknown Object (File)
Tue, Feb 24, 7:18 AM
Unknown Object (File)
Mon, Feb 23, 6:25 PM
Unknown Object (File)
Mon, Feb 23, 10:57 AM
Unknown Object (File)
Sun, Feb 22, 2:54 PM
Unknown Object (File)
Jan 28 2026, 6:18 PM
Unknown Object (File)
Jan 27 2026, 8:38 PM
Unknown Object (File)
Jan 24 2026, 4:43 AM
Subscribers

Details

Summary

Fix a segfault when printing the "protocol" field. The field-format and
encoding-format were expecting different numbers of arguments.

PR: 292228
Fixes: c2b08c13c20 netstat: add support for UDP-Lite endpoints
MFC after: 1 week
Sponsored by: ConnectWise

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Jan 6 2026, 11:38 PM

can you also fix the padding in tcp-state?

usr.bin/netstat/inet.c
397–401
  • Style, suggested by des@
  • Fix the encoded width of tcp-state, suggested by @des
This revision now requires review to proceed.Jan 7 2026, 1:41 PM
This revision is now accepted and ready to land.Jan 7 2026, 2:04 PM
This revision was automatically updated to reflect the committed changes.