Page MenuHomeFreeBSD

sockstat: support reporting of BBLog state
ClosedPublic

Authored by tuexen on Mon, Oct 6, 8:37 PM.
Tags
None
Referenced Files
F131403568: D52944.diff
Tue, Oct 7, 4:09 PM
F131364043: D52944.id163661.diff
Tue, Oct 7, 6:56 AM
F131354426: D52944.diff
Tue, Oct 7, 4:49 AM
F131346531: D52944.id163661.diff
Tue, Oct 7, 3:07 AM
F131344035: D52944.id.diff
Tue, Oct 7, 2:35 AM
F131341746: D52944.diff
Tue, Oct 7, 2:04 AM
Subscribers

Details

Summary

Add a -b option to print the BBLog state for TCP sockets.

Diff Detail

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

Event Timeline

tuexen requested review of this revision.Mon, Oct 6, 8:37 PM
This revision is now accepted and ready to land.Tue, Oct 7, 12:28 PM
jtl added inline comments.
usr.bin/sockstat/main.c
1088

It probably is overkill, but you could add a TCP_LOG_STATE_COUNT at the end of enum tcp_log_states and add a static assertion that the number hasn't changed. Again, probably overkill.

1529

Why have this conditional? (I recognize it makes it consistent with the treatment of the surrounding options. I'm just curious in understanding why we chose this treatment.)

This revision was automatically updated to reflect the committed changes.