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

Technical Reference: Base Operating System and Extensions, Volume 1

pcap_fileno Subroutine

Purpose

Obtains the descriptor for the packet capture device.

Library

pcap Library (libpcap.a)

Syntax


#include <pcap.h>

int pcap_fileno(pcap_t * p);

Description

The pcap_fileno subroutine returns the descriptor for the packet capture device. This subroutine should be called only after a successful call to the pcap_open_live subroutine and before any calls to the pcap_close subroutine.

Parameters

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

Return Values

The pcap_fileno subroutine returns the descriptor for the packet capture device.

Related Information

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

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