pcap_fileno Subroutine
Purpose
Obtains the descriptor for the packet capture device.
Library
pcap Library (libpcap.a)
Syntax
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
Item | Description |
---|---|
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.