pcap_snapshot Subroutine
Purpose
Obtains the number of bytes that will be saved for each packet captured.
Library
pcap Library (libpcap.a)
Syntax
Description
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.
Parameters
Item | Description |
---|---|
p | Points to the packet capture descriptor as returned by the pcap_open_live or the pcap_open_offline subroutine. |
Return Values
The pcap_snapshot subroutine returns the snapshot length.