PCAP_DUMP(3)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

🌸 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