pcap_dump_close Subroutine

Purpose

Closes a packet capture data file, know as a savefile.

Library

pcap Library (libpcap.a)

Syntax

#include <pcap.h>

void pcap_dump_close(pcap_dumper_t * p);

Description

The pcap_dump_close subroutine closes a packet capture data file, known as the savefile, that was opened using the pcap_dump_open subroutine.

Parameters

Item Description
p Points to a pcap_dumper_t, which is synonymous with a FILE *, the file pointer of a savefile.