1PCAP_DATALINK_NAME_TO_VAL(3PCAP) PCAP_DATALINK_NAME_TO_VAL(3PCAP)
2
3
4
6 pcap_datalink_name_to_val - get the link-layer header type value correā
7 sponding to a header type name
8
10 #include <pcap/pcap.h>
11
12 int pcap_datalink_name_to_val(const char *name);
13
15 pcap_datalink_name_to_val() translates a link-layer header type name,
16 which is a DLT_ name with the DLT_ removed, to the corresponding link-
17 layer header type value. The translation is case-insensitive.
18
20 pcap_datalink_name_to_val() returns 0 on success and -1 on failure.
21
23 pcap(3PCAP)
24
25
26
27 22 August 2010PCAP_DATALINK_NAME_TO_VAL(3PCAP)