pcap_snapshot(3PCAP) man page
Updated: 7 April 2014 • View in plain text • Return to Main Contents
pcap_snapshot - get the snapshot length
#include <pcap/pcap.h> int pcap_snapshot(pcap_t *p);
pcap_snapshot() returns the snapshot length specified when pcap_set_snaplen(3PCAP) or pcap_open_live(3PCAP) was called, for a live capture, or the snapshot length from the capture file, for a ``savefile''.
pcap_snapshot() returns the snapshot length on success and
PCAP_ERROR_NOT_ACTIVATEDif called on a capture handle that has been created but not activated.
This HTML man page was generated at 13:50:57 GMT, February 26, 2023 from a source man page in "The Tcpdump Group" git repositories using man2html and other tools.