PCAP_DUMP_FLUSH(3)

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

okay bestie, welcome to the PCAP_DUMP_FLUSH(3) page from the Library Functions Manual πŸ’… this one is short, sweet, and honestly kind of a main character for anyone dumping packets. πŸŽ€

✨ NAME ✨

  • pcap_dump_flush β€” flush to a savefile packets dumped

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <pcap/pcap.h>

int pcap_dump_flush(pcap_dumper_t *p);

πŸ’Ύ DESCRIPTION πŸ’Ύ

okay so pcap_dump_flush() has one job and it does it slayfully: it flushes the output buffer to the β€œsavefile”, so that any packets written with pcap_dump(3) but not yet written to the β€œsavefile” will be written. that's the whole plot. ✨ no cap.

πŸŽ€ RETURN VALUE πŸŽ€

vibe check: pcap_dump_flush() returns 0 on success βœ… and PCAP_ERROR on failure πŸ’€.

πŸ”₯ SEE ALSO πŸ”₯

go read those next, bestie, iykyk 🫢


πŸ’– cute little sign-off: this page is PCAP_DUMP_FLUSH(3) from the Library Functions Manual, dated 25 July 2018. byeee πŸ’…πŸŒΈ

πŸ“¦ where this page comes from