[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Technical Reference: Base Operating System and Extensions, Volume 1


pcap_file Subroutine

Purpose

Obtains the file pointer to the savefile, a previously saved packed capture data file.

Library

pcap Library (libpcap.a)

Syntax


#include <pcap.h>


FILE *pcap_file(pcap_t * p);

Description

The pcap_file subroutine returns the file pointer to the savefile. If there is no open savefile, 0 is returned. This subroutine should be called after a successful call to the pcap_open_offline subroutine and before any calls to the pcap_close subroutine.

Parameters


p Points to a packet capture descriptor as returned by the pcap_open_offline subroutine.

Return Values

The pcap_file subroutine returns the file pointer to the savefile.

Related Information

The pcap_close (pcap_close Subroutine) subroutine, pcap_open_offline (pcap_open_offline Subroutine) subroutine.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]