Obtains the number of bytes that will be saved for each packet captured.
pcap Library (libpcap.a)
#include <pcap.h>
int pcap_snapshot( pcap_t * p);
The pcap_snapshot subroutine returns the snapshot length, which is the number of bytes to save for each packet captured.
Item | Description |
---|---|
p | Points to the packet capture descriptor as returned by the pcap_open_live or the pcap_open_offline subroutine. |
The pcap_snapshot subroutine returns the snapshot length.