PCAP_DUMP_FLUSH(3)
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
- 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