pcap_datalink_name_to_val(3pcap)

pcap_datalink_name_to_val3pcap

Get the link-layer header type value corresponding to a header type name

Usage

#include <pcap/pcap.h>

int pcap_datalink_name_to_val(const char *name);

Overview

pcap_datalink_name_to_val() translates a link-layer header type name, which is a DLT_ name with the DLT_ removed, to the corresponding link-layer header type value. The translation is case-insensitive.

Return value

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

Releases

90 releases since Mac OS X 10.6; the text changed 6 times.

  1. 10.6–10.6.8
  2. 10.7–10.8.5
  3. 10.9–10.11.6
  4. 10.12–10.14.6
  5. 10.15–10.15.1
  6. 10.15.2–12.5
  7. 13.0–26.5

From libpcap 146 in macOS 26.5. Parsed by carta from the page's man source.