PCAP_DUMP_FLUSH(3PCAP)

πŸ“¦
version 1.11.0 Β· 2 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, fedora 43, fedora 44, nixos 26.05, ubuntu resolute, ubuntu stonking

πŸŽ€ pcap_dump_flush πŸŽ€

okay so bestie, welcome to the manual page for PCAP_DUMP_FLUSH(3PCAP)! ✨ This one is all about flushing dumped packets to a savefile. It's short, it's sweet, it's giving utility realness. πŸ’–


✨ 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() flushes the output buffer to the savefile, so that any packets written with pcap_dump(3PCAP) but not yet written to the savefile will be written. periodt, that's the whole function. 🫢

🫢 RETURN VALUE 🫢

so like, pcap_dump_flush() returns 0 on success and PCAP_ERROR on failure. if you get that failure vibe, handle it. 😭

πŸ‘‘ SEE ALSO πŸ‘‘

  • pcap(3PCAP)
  • pcap_dump_open(3PCAP)

mwah πŸ’‹ that's the whole iconic page, bestie! This manual page is from the 3PCAP manual, dated 25 July 2018, and it's literally PCAP_DUMP_FLUSH(3PCAP) β€” no cap, periodt. πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from