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 data link type name, which  is
16       a  DLT_ name with the DLT_ removed, to the corresponding data link type
17       value.  The translation is case-insensitive.
18

RETURN VALUE

20       pcap_datalink_name_to_val() returns 0 on success and -1 on failure.
21

SEE ALSO

23       pcap(3PCAP)
24
25
26
27                                 5 April 2008 PCAP_DATALINK_NAME_TO_VAL(3PCAP)
Impressum