ddb: add optional printing of BBLog entries
Add a /b option to show tcpcb and show all tcpcbs to print BBLog
entries. Right now this supports the entries generated by the
FreeBSD default TCP stack. It should help in debugging issues
reported by syzkaller.
The syntax for printing sent and received packets is similar to the
one used by packetdrill, since the output of ddb will be used to
create packetdrill scripts for debugging.
Reviewed by: thj
Tested by: thj
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D50629
(cherry picked from commit a62c6b0de48a5b9b752976b2675ac807684b7fdb)