PCAP_DATALINK(3PCAP)PCAP_DATALINK(3PCAP)NAMEpcap_datalink - get the link-layer header type
SYNOPSIS
#include <pcap/pcap.h>
int pcap_datalink(pcap_t *p);
DESCRIPTIONpcap_datalink() returns the link layer type for the live capture or
``savefile'' specified by p.
SEE ALSOpcap(3PCAP), pcap-linktype(5)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_DATALINK(3PCAP)