PCAP_TSTAMP_TYPE_NAME_TO_VAL(3PCAP)

πŸ“¦
version 1.10.7 Β· 2 versions
  • 1.10.7 Β· alpine 3.22, alpine 3.23, alpine 3.24, centos-stream 10, centos-stream 9, debian bookworm, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 1.11.0 Β· arch rolling
, in alpine 3.22, alpine 3.23, alpine 3.24, centos-stream 10, centos-stream 9, debian bookworm, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸŽ€ NAME πŸŽ€

okay so bestie, welcome to the PCAP_TSTAMP_TYPE_NAME_TO_VAL(3PCAP) page β€” yes, the whole manual-name situation is folded right up here at the top, and we are about to make timestamp type names make sense πŸ’…

pcap_tstamp_type_name_to_val β€” get the time stamp type value corresponding to a time stamp type name. literally the name-to-value translator, no cap ✨


✨ SYNOPSIS ✨

#include <pcap/pcap.h>

int pcap_tstamp_type_name_to_val(const char *name);

πŸ’– DESCRIPTION πŸ’–

okay so pcap_tstamp_type_name_to_val() translates a time stamp type name to the corresponding time stamp type value. the translation is case-insensitive β€” so yes, capitalization is not the vibe check here, it just works πŸ’…


πŸ”₯ RETURN VALUE πŸ”₯

pcap_tstamp_type_name_to_val() returns time stamp type value on success and PCAP_ERROR on failure. slay when it works, PCAP_ERROR when it doesn’t 😭


πŸ•°οΈ BACKWARD COMPATIBILITY πŸ•°οΈ

This function became available in libpcap release 1.2.1. periodt β€” old libpcap girlies need the upgrade 🫢


πŸ‘€ SEE ALSO πŸ‘€

  • pcap(3PCAP)
  • pcap_tstamp_type_val_to_name(3PCAP)

mwah πŸ’‹ this page is signed off on 22 August 2020, from the PCAP_TSTAMP_TYPE_NAME_TO_VAL(3PCAP) manual source β€” libpcap bestie forever 🫢

πŸ“¦ where this page comes from