PCAP_FILENO(3PCAP)PCAP_FILENO(3PCAP)NAMEpcap_fileno - get the file descriptor for a live capture
SYNOPSIS
#include <pcap/pcap.h>
int pcap_fileno(pcap_t *p);
DESCRIPTIONpcap_fileno() returns the file descriptor number from which captured
packets are read, if a network device was opened with pcap_create() and
pcap_activate() or with pcap_open_live(), or -1, if a ``savefile'' was
opened with pcap_open_offline().
SEE ALSOpcap(3PCAP), pcap_create(3PCAP), pcap_activate(3PCAP)ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
┌────────────────────┬─────────────────────────┐
│ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
├────────────────────┼─────────────────────────┤
│Availability │ system/library/libpcap │
├────────────────────┼─────────────────────────┤
│Interface Stability │ Uncommitted │
└────────────────────┴─────────────────────────┘
NOTES
Source for libpcap is available at http://opensolaris.org and at
http://www.tcpdump.org. Documentation is available at
file:///usr/share/man, and http://www.tcpdump.org.
5 April 2008 PCAP_FILENO(3PCAP)