pcap_tstamp_type_name_to_val(3pcap)

pcap_tstamp_type_name_to_val3pcap

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

8 releases since Debian 7 (Wheezy); the text changed 3 times.

  1. 7–8
  2. 9–10
  3. 11–13
  4. Arch

From libpcap 1.11.0-1 in Arch Linux 2026-11-07. Parsed by carta from the page's man source.