PCAP_TSTAMP_TYPE_VAL_TO_NAME(3PCAP)
π
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
- alpine 3.22: libpcap-doc 1.10.7-r0 Β· BSD-3-Clause
- alpine 3.23: libpcap-doc 1.10.7-r0 Β· BSD-3-Clause
- alpine 3.24: libpcap-doc 1.10.7-r0 Β· BSD-3-Clause
- centos-stream 10: libpcap-devel 14:1.10.4-8.el10 Β· ISC AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC
- centos-stream 9: libpcap-devel 14:1.10.0-5.el9 Β· BSD with advertising
- centos-stream 9: libpcap-devel 14:1.10.0-5.el9 Β· BSD with advertising
- debian bookworm: libpcap0.8-dev 1.10.3-1
- debian trixie: libpcap0.8-dev 1.10.5-2
- fedora 43: libpcap-devel 14:1.10.5-3.fc43 Β· ISC AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC
- fedora 43: libpcap-devel 14:1.10.5-3.fc43 Β· ISC AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC
- fedora 43: libpcap-devel 14:1.10.7-1.fc43 Β· ISC AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC
- fedora 43: libpcap-devel 14:1.10.7-1.fc43 Β· ISC AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC
- fedora 44: libpcap-devel 14:1.10.6-2.fc44 Β· ISC AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC
- fedora 44: libpcap-devel 14:1.10.6-2.fc44 Β· ISC AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC
- fedora 44: libpcap-devel 14:1.10.7-1.fc44 Β· ISC AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC
- fedora 44: libpcap-devel 14:1.10.7-1.fc44 Β· ISC AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC
- nixos 26.05: libpcap 1.10.7
- nixpkgs unstable: libpcap 146
- opensuse-leap 16.0: libpcap-devel 1.10.5-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libpcap-devel 1.10.5-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libpcap-devel 1.10.5-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libpcap-devel 1.10.5-160000.5.1 Β· BSD-3-Clause
- ubuntu jammy: libpcap0.8-dev 1.10.1-4build1
- ubuntu jammy: libpcap0.8-dev 1.10.1-4ubuntu1.22.04.2
- ubuntu noble: libpcap0.8-dev 1.10.4-4.1ubuntu3
- ubuntu noble: libpcap0.8-dev 1.10.4-4.1ubuntu3.1
- ubuntu questing: libpcap0.8-dev 1.10.5-2ubuntu2
- ubuntu resolute: libpcap0.8-dev 1.10.6-1ubuntu1 Β· BSD-3-clause-var3
- ubuntu resolute: libpcap0.8-dev 1.10.6-1ubuntu1.1 Β· BSD-3-clause-var3
- ubuntu stonking: libpcap0.8-dev 1.10.7-1ubuntu1 Β· BSD-3-clause-var3
- 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