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
31       not correspond to a known DLT_ value, the string "DLT n"  is  returned,
32       where n is the value of the dlt argument.
33

BACKWARD COMPATIBILITY

35       The  pcap_datalink_val_to_description_or_dlt()  function  first  became
36       available  in   libpcap   release   1.9.1.    In   previous   releases,
37       pcap_datalink_val_to_description()  would  have to be called and, if it
38       returned NULL, a default string would have to be constructed.
39

SEE ALSO

41       pcap(3PCAP)
42
43
44
45                                  4 May 2022  PCAP_DATALINK_VAL_TO_NAME(3PCAP)
Impressum