1PCAP_DATALINK_NAME_TO_VAL(3PCAP)              PCAP_DATALINK_NAME_TO_VAL(3PCAP)
2
3
4

NAME

6       pcap_datalink_name_to_val - get the link-layer header type value correā€
7       sponding to a header type name
8

SYNOPSIS

10       #include <pcap/pcap.h>
11
12       int pcap_datalink_name_to_val(const char *name);
13

DESCRIPTION

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

RETURN VALUE

20       pcap_datalink_name_to_val() returns  the  type  value  on  success  and
21       PCAP_ERROR if the name is not a known type name..
22

SEE ALSO

24       pcap(3PCAP)
25
26
27
28                                 25 July 2018 PCAP_DATALINK_NAME_TO_VAL(3PCAP)
Impressum