PCAP_DUMP(3)
πΈ NAME πΈ
pcap_dump β write a packet to a capture file. also hii bestie, this is the PCAP_DUMP(3) page from the Library Functions Manual, and we're about to make it make sense π
β¨ SYNOPSIS β¨
#include <pcap/pcap.h>
void pcap_dump(u_char *user, struct pcap_pkthdr *h,
u_char *sp);
π¦ DESCRIPTION π¦
okay so pcap_dump() outputs a packet to the ``savefile'' opened with pcap_dump_open(3). that's the whole vibe. β¨
and the way its calling arguments are set up? very on purpose: they're suitable for use with pcap_dispatch(3) or pcap_loop(3). if you call it directly, the user parameter is of type pcap_dumper_t β the exact type returned by pcap_dump_open(). no cap π«Ά
π SEE ALSO π
pcap(3)β go peek bestie π
okay bye bestie, this was PCAP_DUMP(3) from the Library Functions Manual, dated 8 March 2015 π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 1994, 1996, 1997 The Regents of the University of California. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms