pcap_dump(3)

pcap_dump3

Write a packet to a capture file

Usage

#include <pcap/pcap.h>

void pcap_dump(u_char *user, struct pcap_pkthdr *h,
u_char *sp);

Overview

pcap_dump() outputs a packet to the ``savefile'' opened with pcap_dump_open(3). Note that its calling arguments are suitable for use with pcap_dispatch(3) or pcap_loop(3). If called directly, the user parameter is of type pcap_dumper_t as returned by pcap_dump_open().

Releases

39 releases since FreeBSD 8.0-RELEASE; the text changed 9 times.

  1. 8.0–8.4
  2. 9.0–10.4
  3. 11.0
  4. 11.1–11.3
  5. 11.4
  6. 12.0–12.1
  7. 12.2–13.4
  8. 13.5
  9. 14.0–14.1
  10. 14.2–16.0

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's man source.