PCAP_SET_SNAPLEN(3)
π NAME π
Hiii bestie! Welcome to pcap_set_snaplen(3) β that's the page name β from the Library Functions Manual. This one is all about setting the snapshot length for a not-yet-activated capture handle. Slay. β¨
π SYNOPSIS π
#include <pcap/pcap.h>
int pcap_set_snaplen(pcap_t *p, int snaplen);
π¦ DESCRIPTION π¦
Okay so pcap_set_snaplen() sets the snapshot length that's gonna be used on a capture handle when the handle is activated. You pass that value in as snaplen, and the capture handle is p. Cute and straightforward. π
πΈ RETURN VALUE πΈ
pcap_set_snaplen() returns 0 on success. If you call it on a capture handle that has already been activated, it returns PCAP_ERROR_ACTIVATED. No cap, that's the whole return-value story. π«Ά
π SEE ALSO π
xoxo, your local Unix bestie π§π β from the Library Functions Manual, PCAP_SET_SNAPLEN(3), dated 3 January 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