PCAP_SNAPSHOT(3)
π PCAP_SNAPSHOT(3) π
okay so bestie, welcome to the PCAP_SNAPSHOT(3) page from the Library Functions Manual β it's giving βget the snapshot lengthβ energy, and honestly? iconic. β¨
π NAME π
pcap_snapshot - get the snapshot length
β¨ SYNOPSIS β¨
#include <pcap/pcap.h>
int pcap_snapshot(pcap_t *p);
π DESCRIPTION π
pcap_snapshot() returns the snapshot length specified when pcap_set_snaplen(3) or pcap_open_live(3) was called, for a live capture β or the snapshot length from the capture file, for a savefile. lowkey straightforward, fr fr. π«Ά
okay but the vibe check here is serious: it must not be called on a pcap descriptor created bypcap_create(3)that has not yet been activated bypcap_activate(3). not me warning you twice. π«π
πΈ RETURN VALUE πΈ
pcap_snapshot() returns the snapshot length on success. and if you call it on a capture handle that has been created but not activated? it returns PCAP_ERROR_NOT_ACTIVATED. π periodt.
π¦ SEE ALSO π¦
xoxo, your Library Functions Manual bestie β PCAP_SNAPSHOT(3), dated 7 April 2014 πβ¨
π¦ 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