PCAP_DUMP(3PCAP)
π PCAP_DUMP π
okay bestie, gather round, because today we're learning about pcap_dump from the 3PCAP manual, and honestly? she's a whole vibe. this is the function that takes a packet and yeets it into a capture file. slay.
β¨ NAME β¨
pcap_dump β write a packet to a capture file π
no cap, that's literally it. one packet, one savefile, one iconic little moment.
πΈ SYNOPSIS πΈ
#include <pcap/pcap.h>
void pcap_dump(u_char *user, struct pcap_pkthdr *h,
u_char *sp);
look at her. three little args. she's giving minimalist queen π
π¦ DESCRIPTION π¦
so here's the tea, bestie. pcap_dump() outputs a packet to the ``savefile'' that was opened with pcap_dump_open(3PCAP). like, that's her whole job. she dumps. she writes. she moves on. main character energy fr fr.
and the cutest part? her calling arguments are literally designed to be suitable for use with pcap_dispatch(3PCAP) or pcap_loop(3PCAP). so you can just hand her straight to those callback situations and she fits right in, no drama, no awkwardness. it's giving perfectly compatible. π«Ά
β οΈ but lowkey important: if you call her directly (like, not throughpcap_dispatch()orpcap_loop()), then theuserparameter is of typepcap_dumper_t, exactly as returned bypcap_dump_open(). don't get it twisted, bestie. that's the type. periodt. π
π SEE ALSO π
pcap(3PCAP)
go read her mom, she's iconic too. iykyk π
that's the whole page, bestie, and you ATE it. β¨
this little legend comes to you from the 8 March 2015 era of PCAP_DUMP(3PCAP) β vintage but still slaying. mwah. ππ
π¦ where this page comes from
- alpine 3.22: libpcap-doc 1.10.7-r0 Β· BSD-3-Clause
- alpine 3.23: libpcap-doc 1.10.7-r0 Β· BSD-3-Clause
- alpine 3.24: libpcap-doc 1.10.7-r0 Β· BSD-3-Clause
- arch rolling: libpcap 1.11.0-1 Β· BSD-3-Clause
- debian trixie: libpcap0.8-dev 1.10.5-2
- fedora 43: libpcap-devel 14:1.10.5-3.fc43 Β· ISC AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC
- fedora 43: libpcap-devel 14:1.10.5-3.fc43 Β· ISC AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC
- fedora 43: libpcap-devel 14:1.10.7-1.fc43 Β· ISC AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC
- fedora 43: libpcap-devel 14:1.10.7-1.fc43 Β· ISC AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC
- fedora 44: libpcap-devel 14:1.10.6-2.fc44 Β· ISC AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC
- fedora 44: libpcap-devel 14:1.10.6-2.fc44 Β· ISC AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC
- fedora 44: libpcap-devel 14:1.10.7-1.fc44 Β· ISC AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC
- fedora 44: libpcap-devel 14:1.10.7-1.fc44 Β· ISC AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC
- nixos 26.05: libpcap 1.10.7
- opensuse-leap 16.0: libpcap-devel 1.10.5-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libpcap-devel 1.10.5-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libpcap-devel 1.10.5-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libpcap-devel 1.10.5-160000.5.1 Β· BSD-3-Clause
- ubuntu questing: libpcap0.8-dev 1.10.5-2ubuntu2
- ubuntu resolute: libpcap0.8-dev 1.10.6-1ubuntu1 Β· BSD-3-clause-var3
- ubuntu resolute: libpcap0.8-dev 1.10.6-1ubuntu1.1 Β· BSD-3-clause-var3
- ubuntu stonking: libpcap0.8-dev 1.10.7-1ubuntu1 Β· BSD-3-clause-var3
- Copyright (c) 1994, 1996, 1997 The Regents of the University of California. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms