PCAP_TSTAM...AME_TO_VAL(3)
π pcap_tstamp_type_name_to_val β bestie edition π
okay so real quick, this page lives in the Library Functions Manual (that's the manual name, iykyk) and it's all about one lil function that turns a time stamp type name into a time stamp type value. iconic behavior honestly.
β¨ NAME β¨
pcap_tstamp_type_name_to_val β get the time stamp type value corresponding to a time stamp type name π
π¦ SYNOPSIS π¦
#include <pcap/pcap.h>
int pcap_tstamp_type_name_to_val(const char *name);
πΈ DESCRIPTION πΈ
okay so here's the vibe: pcap_tstamp_type_name_to_val() translates a time stamp type name to the corresponding time stamp type value. that's it, that's the whole job. and the translation is case-insensitive, so like, go ahead and scream it or whisper it, pcap_tstamp_type_name_to_val() does not care π
π«Ά RETURN VALUE π«Ά
pcap_tstamp_type_name_to_val() returns the time stamp type value on success, and PCAP_ERROR on failure. no cap. π
π BACKWARD COMPATIBILITY π
this function became available in libpcap release 1.2.1. so if you're on something older than that... bestie. upgrade. π
π SEE ALSO π
pcap(3)β the main characterpcap_tstamp_type_val_to_name(3)β the reverse direction, the other half of the duo π
that's the whole page, bestie! go forth and translate those names fr fr π§π
~ signed, sealed, delivered by the Library Functions Manual, dated 22 August 2018 ~ πβ
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 1994, 1996, 1997 The Regents of the University of California. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms