pcap_datalink(3) - Linux man page

Name

pcap_datalink - get the link-layer header type

Synopsis

#include <pcap/pcap.h>
int pcap_datalink(pcap_t *p);

Description

pcap_datalink() returns the link layer type for the live capture or ''savefile'' specified by p.

See Also

pcap(3PCAP), pcap-linktype(7)