Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
T

tcpdump

> 安全
Open source

the TCPdump network dissector

3.2K stars0 likes0 views
WebsiteGitHub

About

the TCPdump network dissector

TCPDUMP 4.x.y by The Tcpdump Group

To report a security issue please send an e-mail to [email protected].

To report bugs and other problems, contribute patches, request a feature, provide generic feedback etc please see the guidelines for contributing in the tcpdump source tree root.

Anonymous Git is available via

https://github.com/the-tcpdump-group/tcpdump.git

This directory contains source code for tcpdump, a tool for network monitoring and data acquisition.

Over the past few years, tcpdump has been steadily improved by the excellent contributions from the Internet community (just browse through the change log). We are grateful for all the input.

Supported platforms

In many operating systems tcpdump is available as a native package or port, which simplifies installation of updates and long-term maintenance. However, the native packages are sometimes a few versions behind and to try a more recent snapshot it will take to compile tcpdump from the source code.

tcpdump compiles and works on at least the following platforms:

  • AIX
  • DragonFly BSD
  • FreeBSD
  • Haiku
  • HP-UX 11i
  • illumos (OmniOS, OpenIndiana)
  • GNU/Hurd
  • GNU/Linux
  • {Mac} OS X / macOS
  • MidnightBSD
  • NetBSD
  • OpenBSD
  • QNX
  • Solaris
  • Windows (requires WinPcap or Npcap, and Visual Studio with CMake)

In the past tcpdump certainly or likely worked on the following platforms:

  • 4.3BSD
  • AmigaOS 4
  • BSD/386, later BSD/OS
  • DEC OSF/1, later Digital UNIX, later Tru64 UNIX
  • DOS
  • IRIX
  • LynxOS
  • OpenVMS
  • SINIX
  • SunOS
  • Ultrix
  • UnixWare

Dependency on libpcap

tcpdump uses libpcap, a system-independent interface for user-level packet capture. If your operating system does not provide libpcap, or if it provides a libpcap that does not support the APIs from libpcap 1.0 or later, you must first retrieve and build libpcap before building tcpdump,

Once libpcap is built (either install it or make sure it's in ../libpcap), you can build tcpdump using the procedure in the installation notes.

Origins of tcpdump

The program is loosely based on SMI's "etherfind" although none of the etherfind code remains. It was originally written by Van Jacobson as part of an ongoing research project to investigate and improve TCP and Internet gateway performance. The parts of the program originally taken from Sun's etherfind were later re-written by Steven McCanne of LBL. To insure that there would be no vestige of proprietary code in tcpdump, Steve wrote these pieces from the specification given by the manual entry, with no access to the source of tcpdump or etherfind.

formerly from	Lawrence Berkeley National Laboratory
		Network Research Group <[email protected]>
		ftp://ftp.ee.lbl.gov/old/tcpdump.tar.Z (3.4)

See also

Richard Stevens gives an excellent treatment of the Internet protocols in his book "TCP/IP Illustrated, Volume 1". If you want to learn more about tcpdump and how to interpret its output, pick up this book.

Another tool that tcpdump users might find useful is tcpslice. It is a program that can be used to extract portions of tcpdump binary trace files.

The original LBL README by Steve McCanne, Craig Leres and Van Jacobson

…

GitHub Issues· 134 open

View all on GitHub
  • #1460

    "make releasecheck" fails to fail when FreeBSD make backwards compatibility is off

    compilingUpdated Sep 15, 2026
  • #1458

    the use of Capsicum breaks clearing of IFF_PPROMISC for netmap interfaces

    Updated Sep 8, 2026
  • #1459

    detect libbfd in non-default prefix for "./configure --enable-instrument-functions"

    compilingUpdated Sep 8, 2026
  • #1409

    on QNX the once-per-second stats reporting of "-v" clashes with the default timeout of 1000ms and "-w"

    POSIX signalsQNXUpdated Aug 3, 2026
  • #1447

    Printing 802.11 radio metadata with -e is too verbose

    Updated Jul 10, 2026
  • #1448

    IP addresses should not be resolved when dumping "who-has" (ARP) requests

    generic supportUpdated Jul 3, 2026

Highlights

  • •DragonFly BSD
  • •HP-UX 11i
  • •illumos (OmniOS, OpenIndiana)
  • •GNU/Hurd
  • •GNU/Linux
  • •{Mac} OS X / macOS
  • •MidnightBSD
  • •Windows (requires WinPcap or Npcap, and Visual
  • •AmigaOS 4
  • •BSD/386, later BSD/OS

> Tags

Cauditingberkeley-packet-filterbpfbsd-packet-filter

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category安全
PricingOpen source

> Related tools

O
OWASP ZAP
开源 Web 应用安全扫描器
O
owasp-wstg-tracker
Simple web app to track OWASP WSTG security testing progress
H
homebridge-mi-gateway-security
XiaoMi Gateway Security plugin for HomeBridge.