pcap_tstamp_type_name_to_val(3)

pcap_tstamp_type_name_to_val3

Get the time stamp type value corresponding to a time stamp type name

Usage

#include <pcap/pcap.h>

int pcap_tstamp_type_name_to_val(const char *name);

Overview

pcap_tstamp_type_name_to_val() translates a time stamp type name to the corresponding time stamp type value. The translation is case-insensitive.

Return value

pcap_tstamp_type_name_to_val() returns time stamp type value on success and PCAP_ERROR on failure.

Backward compatibility

This function became available in libpcap release 1.2.1.

Releases

33 releases since FreeBSD 9.1-RELEASE; the text changed 5 times.

  1. 9.1–11.0
  2. 11.1–11.3
  3. 11.4
  4. 12.0–12.1
  5. 12.2–13.4
  6. 13.5–16.0

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's man source.