1PCAP_DATALINK_VAL_TO_NAME(3PCAP)              PCAP_DATALINK_VAL_TO_NAME(3PCAP)
2
3
4

NAME

6       pcap_datalink_val_to_name,            pcap_datalink_val_to_description,
7       pcap_datalink_val_to_description_or_dlt - get a name or description for
8       a link-layer header type value
9

SYNOPSIS

11       #include <pcap.h>
12
13       const char *pcap_datalink_val_to_name(int dlt);
14       const char *pcap_datalink_val_to_description(int dlt);
15       const char *pcap_datalink_val_to_description_or_dlt(int dlt);
16

DESCRIPTION

18       pcap_datalink_val_to_name()  translates  a link-layer header type value
19       to the corresponding link-layer header type name,  which  is  the  DLT_
20       name  for the link-layer header type value with the DLT_ removed.  NULL
21       is returned if the type value does  not  correspond  to  a  known  DLT_
22       value.
23
24       pcap_datalink_val_to_description()  translates a link-layer header type
25       value to a short description of that link-layer header type.   NULL  is
26       returned if the type value does not correspond to a known DLT_ value.
27
28       pcap_datalink_val_to_description_or_dlt()   translates   a   link-layer
29       header type value to a short description of that link-layer header type
30       just like pcap_datalink_val_to_description.  If the type value does not
31       correspond to a known DLT_ value, the string "DLT n" is returned, where
32       n is the value of the dlt argument.
33

SEE ALSO

35       pcap(3PCAP)
36
37
38
39                                12 October 2016PCAP_DATALINK_VAL_TO_NAME(3PCAP)
Impressum