PCAP_CLOSE(3)
π PCAP_CLOSE(3) π
okay so bestie, welcome to the PCAP_CLOSE(3) page from the Library Functions Manual β this is the βclose a capture device or savefileβ page, and itβs literally the cleanup queen πβ¨
πΈ NAME πΈ
pcap_close β close a capture device or savefile π«Ά
β¨ SYNOPSIS β¨
#include <pcap/pcap.h>
void pcap_close(pcap_t *p);
π DESCRIPTION π
pcap_close() does the goodbye choreography: it closes the files associated with p and deallocates resources π
. So, for example, if p refers to a savefile that was opened with pcap_fopen_offline() or pcap_fopen_offline_with_tstamp_precision(), the stream provided to the routine will be closed unless it is stdin π«Ά.
π¨ no cap: if that stream is stdin, it is not closed.
π SEE ALSO π
xoxo, PCAP_CLOSE(3) from the Library Functions Manual, dated 12 October 2024 β sheβs iconic, sheβs clean, sheβs done π
πβ¨
π¦ 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