TCP Dump

TCPdump is a powerful command-line packet analyzer; and libpcap, a portable C/C++ library for network traffic capture.

https://www.tcpdump.org/

Full documentation is provided with the source packages in man page format.