Obtains the descriptor for the packet capture device.
pcap Library (libpcap.a)
#include <pcap.h>
int pcap_fileno(pcap_t * p);
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.
Item | Description |
---|---|
p | Points to a packet capture descriptor as returned by the pcap_open_live subroutine. |
The pcap_fileno subroutine returns the descriptor for the packet capture device.