Obtains the number of bytes that will be saved for each packet captured.
pcap Library (libpcap.a)
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.
Note: This subroutine should only be called after successful calls to either the pcap_open_live subroutine or pcap_open_offline subroutine. It should not be called after a call to the pcap_close subroutine.
|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.
The pcap_close (pcap_close Subroutine) subroutine, pcap_open_live (pcap_open_live Subroutine) subroutine, pcap_open_offline (pcap_open_offline Subroutine) subroutine.