libpcap & Tcpdump

Tcpdump.org is the official web site of tcpdump, a powerful command-line packet analyzer; and libpcap, a portable C/C++ library for network traffic capture.

Tcpdump uses libpcap, a system-independent interface for user-level packet capture. Before building tcpdump, you must first retrieve and build libpcap, also originally from LBL and now being maintained by tcpdump.org;

  • Wireshark;SharkFest;Wi-Fi @ SharkFest;
    Riverbed is the current host and corporate sponsor of the Wireshark project, Wireshark Foundation and SharkFest.
  • libpcap 最新版 1.8.1 (Oct 26, 2016)
    当下我们使用的 1.5.3 (Jan 15, 2014),可以考虑升级。
The Architecture and Optimization Methodology of the libpcap Packet Capture Library
  • Keynote Presentation by Steve McCanne, co-creator tcpdump in Sharkfest '11;
  • 值得读一下;


    libpcap & Tcpdump_第1张图片
    原理示例

    libpcap & Tcpdump_第2张图片
    分析示例
Programming with pcap
  • by Tim Carstens
  • Further editing and development by Guy Harris
Programming with Libpcap - Sniffing the network from our own application
  • by Luis MartinGarcia


    libpcap & Tcpdump_第3张图片
    Elements involved in the capture process

    libpcap & Tcpdump_第4张图片
    Normal program flow of a pcap application

你可能感兴趣的:(libpcap & Tcpdump)