Skip site navigation (1)Skip section navigation (2)

  
 
  

home | help
PCAP_CLOSE(3PCAP)					       PCAP_CLOSE(3PCAP)

NAME
     pcap_close - close a capture device or savefile

SYNOPSIS
     #include <pcap/pcap.h>

     void pcap_close(pcap_t *p);

DESCRIPTION
     pcap_close()  closes the files associated with p and deallocates resources.
     This means that, 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.

SEE ALSO
     pcap(3PCAP), pcap_open_offline(3PCAP)

				 12 October 2024	       PCAP_CLOSE(3PCAP)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=pcap_close&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help