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
F142448246: D47316.id.diff
Tue, Jan 20, 1:44 AM
F142438484: D47316.id.diff
Mon, Jan 19, 11:23 PM
F142420927: D47316.id145989.diff
Mon, Jan 19, 8:07 PM
Unknown Object (File)
Sat, Jan 17, 8:22 AM
Unknown Object (File)
Mon, Jan 12, 12:39 AM
Unknown Object (File)
Tue, Dec 23, 5:19 AM
Unknown Object (File)
Dec 11 2025, 12:36 AM
Unknown Object (File)
Dec 4 2025, 11:53 AM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 60226
Build 57110: arc lint + arc unit

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