PCAP_GET_TSTAMP_PRECISION(3)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

okay so bestie, welcome to the PCAP_GET_T...P_PRECISION(3) page from the Library Functions Manual β€” it’s giving timestamp-precision realness, and honestly it’s iconique βœ¨πŸ’…


🌸 NAME 🌸

  • pcap_get_tstamp_precision β€” get the time stamp precision returned in captures πŸŽ€

✨ SYNOPSIS ✨

#include <pcap/pcap.h>

int pcap_get_tstamp_precision(pcap_t *p);

πŸ¦‹ DESCRIPTION πŸ¦‹

pcap_get_tstamp_precision() returns the precision of the time stamp returned in packet captures on the pcap descriptor. That’s the whole vibe β€” it tells you how precise those capture timestamps are, no cap 🫢

πŸ‘‘ RETURN VALUE πŸ‘‘

pcap_get_tstamp_precision() returns PCAP_TSTAMP_PRECISION_MICRO or PCAP_TSTAMP_PRECISION_NANO, which indicates that pcap captures contains time stamps in microseconds or nanoseconds respectively. literally the precision receipt πŸ’…

🌈 BACKWARD COMPATIBILITY 🌈

This function became available in libpcap release 1.5.1. In previous releases, time stamps from a capture device or savefile are always given in seconds and microseconds. so if you’re kicking it with an older libpcap, that’s the deal, periodt ⭐

🫢 SEE ALSO 🫢


okay that’s the whole page, bestie β€” signing off from the PCAP_GET_T...P_PRECISION(3) page in the Library Functions Manual, dated 23 August 2018. stay precise and slay πŸ’–βœ¨

πŸ“¦ where this page comes from