1PCAP_DATALINK_VAL_TO_NAME(3PCAP) PCAP_DATALINK_VAL_TO_NAME(3PCAP)
2
3
4
6 pcap_datalink_val_to_name, pcap_datalink_val_to_description - get a
7 name or description for a link-layer header type value
8
10 #include <pcap.h>
11
12 const char *pcap_datalink_val_to_name(int dlt);
13 const char *pcap_datalink_val_to_description(int dlt);
14
16 pcap_datalink_val_to_name() translates a link-layer header type value
17 to the corresponding link-layer header type name, which is the DLT_
18 name for the link-layer header type value with the DLT_ removed. NULL
19 is returned if the type value does not correspond to a known DLT_
20 value.
21
22 pcap_datalink_val_to_description() translates a link-layer header type
23 value to a short description of that link-layer header type. NULL is
24 returned if the type value does not correspond to a known DLT_ value.
25
26
27
28 12 October 2016PCAP_DATALINK_VAL_TO_NAME(3PCAP)