Obtains the major version number of the packet capture format used to write the savefile, a previously saved packet capture data file.
pcap Library (libpcap.a)
#include <pcap.h>
int pcap_major_version(pcap_t * p);
The pcap_major_version subroutine returns the major version number of the packet capture format used to write the savefile. If there is no open savefile, 0 is returned.
Item | Description |
---|---|
p | Points to a packet capture descriptor as returned from pcap_open_offline subroutine. |
The major version number of the packet capture format used to write the savefile.