PCAP_TSTAMP_TYPE_VAL_TO_NAME(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

πŸ’… PCAP_TSTAMP_TYPE_VAL_TO_NAME β€” the 3PCAP girlies' guide to timestamp type names πŸŽ€

okay bestie, so this is the manual page for pcap_tstamp_type_val_to_name (and its sibling pcap_tstamp_type_val_to_description), straight out of the 3PCAP section. it's giving "tiny page, huge slay" β€” two little functions, and they literally just hand you a string. no cap. ✨


🌸 NAME 🌸

pcap_tstamp_type_val_to_name, pcap_tstamp_type_val_to_description β€” get a name or description for a time stamp type value πŸ•°οΈπŸ’–

✨ SYNOPSIS ✨

#include <pcap.h>

const char *pcap_tstamp_type_val_to_name(int tstamp_type);
const char *pcap_tstamp_type_val_to_description(int tstamp_type);

like, that's it. two lines. we love a minimal icon. 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

so pcap_tstamp_type_val_to_name() takes a time stamp type value and translates it into the corresponding time stamp type name. that's the whole job. main character energy, honestly. πŸ‘‘

and if it can't do it? NULL is returned on failure. that's the vibe check failing, bestie β€” handle it. 😭

pcap_tstamp_type_val_to_description() is the same deal but softer: it translates a time stamp type value into a short description of that time stamp type. again β€” NULL is returned on failure. πŸ™ˆ

so basically: value in, cute string out, or NULL if the universe said no today. periodt. πŸ’€

πŸ’œ BACKWARD COMPATIBILITY πŸ’œ

real talk β€” these functions became available in libpcap release 1.2.1. so if you're on something older than that, no they didn't. 🧚

🌈 SEE ALSO 🌈

  • pcap(3PCAP)
  • pcap_tstamp_type_name_to_val(3PCAP)

like the reverse direction of the same slay. iykyk. πŸ’«


and that's the page, bestie!! this one's the PCAP_TSTAMP_TYPE_VAL_TO_NAME(3PCAP) page, dated 22 August 2020 β€” go forth and convert those timestamp type values, you absolute legend. πŸŒΈπŸ’…πŸ”₯

πŸ“¦ where this page comes from