Page MenuHomeFreeBSD

sockstat: Add a -f option to show FIB numbers of sockets
ClosedPublic

Authored by markj on Oct 28 2024, 5:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 9, 11:43 PM
Unknown Object (File)
Sep 2 2025, 4:04 PM
Unknown Object (File)
Aug 14 2025, 11:50 PM
Unknown Object (File)
Jun 28 2025, 11:25 PM
Unknown Object (File)
Jun 27 2025, 5:37 AM
Unknown Object (File)
Jun 21 2025, 1:58 PM
Unknown Object (File)
Jun 21 2025, 11:17 AM
Unknown Object (File)
Jun 19 2025, 4:17 AM
Subscribers

Diff Detail

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

Event Timeline

zlei added a subscriber: zlei.
zlei added inline comments.
usr.bin/sockstat/sockstat.c
1342

By default the GENERIC kernel limits the max number of fibs to 65535, See sys/net/route/route_var.h:

#define	RT_MAXFIBS	UINT16_MAX

So 6 chars width should be sufficient enough. But it would be better if you bother to explain this magic number :)

This revision is now accepted and ready to land.Nov 1 2024, 7:14 AM
markj marked an inline comment as done.Nov 1 2024, 1:08 PM