PCAP_MAJOR_VERSION(3)
π PCAP_MAJOR_VERSION(3) π
okay so this is the PCAP_MAJOR_VERSION(3) page from the Library Functions Manual, and it's giving "let's peek at a savefile's version numbers" energy. Bestie, it's short, it's specific, and it's lowkey iconic. β¨
β¨ NAME β¨
pcap_major_version, pcap_minor_version β get the version number of a savefile
π SYNOPSIS π
#include <pcap/pcap.h>
int pcap_major_version(pcap_t *p);
int pcap_minor_version(pcap_t *p);
π¦ DESCRIPTION π¦
So if p refers to a savefile, pcap_major_version() returns the major number of the file format of the savefile, and pcap_minor_version() returns the minor number of the file format of the savefile. Yes bestie, they're a matching set. π
The version number is stored in the savefile; note that the meaning of its values depends on the type of savefile (for example, pcap or pcapng). It's giving "context matters," iykyk. π¦
Ifprefers to a live capture, the values returned bypcap_major_version()andpcap_minor_version()are not meaningful. Not me warning you: those numbers are not it for live capture, so don't treat them like useful info. π
π SEE ALSO π
pcap(3) β go read that one too, bestie, it's the main character of this friend group. π
xoxo, signing off from the 8 January 2018 version of PCAP_MAJOR_VERSION(3) π
β¨
π¦ 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