PCAP_DUMP_FILE(3)

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

πŸ’– PCAP_DUMP_FILE πŸ’–

okay so real quick bestie, this is the pcap_dump_file page from the Library Functions Manual, and it's like… a tiny one, but it slays at exactly one job πŸ’…


✨ NAME ✨

pcap_dump_file β€” lowkey the whole vibe of this page is: get the standard I/O stream for a savefile being written πŸŽ€

Like, you opened a savefile for writing and now you want the actual stream? That's her. That's the whole function. main character energy 🌸


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <pcap/pcap.h>

FILE *pcap_dump_file(pcap_dumper_t *p);

fr fr that's it, that's the signature. p is your pcap_dumper_t *, and what comes back out is a FILE * 🫢


πŸ‘‘ DESCRIPTION πŸ‘‘

okay so pcap_dump_file() returns the standard I/O stream of the ``savefile'' opened by pcap_dump_open(3) ⭐

that's literally the entire description and honestly? iconic. no cap. it gives you the FILE * behind the savefile that pcap_dump_open(3) handed you, and then you go do your thing with it πŸ”₯

ngl bestie, there is no more lore on this page β€” no options, no return values section, no errors, no env vars, no exit statuses. what you see is what you get πŸ’€

🌈 SEE ALSO 🌈

  • pcap(3) β€” the parent page, go say hi 🧚

and that's a wrap, bestie πŸ’œ this page is from the Library Functions Manual, dated 3 January 2014, and honestly it ate in under a paragraph. mwah πŸŽ€βœ¨

πŸ“¦ where this page comes from