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 data link type value to the
17 corresponding data link type name. NULL is returned on failure.
18
19 pcap_datalink_val_to_description() translates a data link type value to
20 a short description of that data link type. NULL is returned on fail‐
21 ure.
22
23
24
25 24 December 2008PCAP_DATALINK_VAL_TO_NAME(3PCAP)