MFC r343755: Regularize the Netflix copyright
Revert r351902 ... it didn't properly exclude rack.c changes
Make the TCP blackbox code committed in r331347 be an optional featurecontrolled by the TCP_BLACKBOX option.Enable this as part of amd64 GENERIC. For now, leave it disabled onother platforms.Sp
Make the TCP blackbox code committed in r331347 be an optional featurecontrolled by the TCP_BLACKBOX option.Enable this as part of amd64 GENERIC. For now, leave it disabled onother platforms.Sponsored by: Netflix, Inc.
show more ...
Add the "TCP Blackbox Recorder" which we discussed at the developersummits at BSDCan and BSDCam in 2017.The TCP Blackbox Recorder allows you to capture events on a TCP connectionin a ring buffer.
Add the "TCP Blackbox Recorder" which we discussed at the developersummits at BSDCan and BSDCam in 2017.The TCP Blackbox Recorder allows you to capture events on a TCP connectionin a ring buffer. It stores metadata with the event. It optionally storesthe TCP header associated with an event (if the event is associated with apacket) and also optionally stores information on the sockets.It supports setting a log ID on a TCP connection and using this to correlatemultiple connections that share a common log ID.You can log connections in different modes. If you are doing a coordinatedtest with a particular connection, you may tell the system to put it inmode 4 (continuous dump). Or, if you just want to monitor for errors, youcan put it in mode 1 (ring buffer) and dump all the ring buffers associatedwith the connection ID when we receive an error signal for that connectionID. You can set a default mode that will be applied to a particular ratioof incoming connections. You can also manually set a mode using a socketoption.This commit includes only basic probes. rrs@ has added quite an abundanceof probes in his TCP development work. He plans to commit those soon.There are user-space programs which we plan to commit as ports. These readthe data from the log device and output pcapng files, and then let youanalyze the data (and metadata) in the pcapng files.Reviewed by: gnn (previous version)Obtained from: Netflix, Inc.Relnotes: yesDifferential Revision: https://reviews.freebsd.org/D11085