1PCAP_MAJOR_VERSION(3PCAP) PCAP_MAJOR_VERSION(3PCAP)
2
3
4
6 pcap_major_version, pcap_minor_version - get the version number of a
7 savefile
8
10 #include <pcap/pcap.h>
11
12 int pcap_major_version(pcap_t *p);
13 int pcap_minor_version(pcap_t *p);
14
16 If p refers to a savefile, pcap_major_version() returns the major num‐
17 ber of the file format of the savefile and pcap_minor_version() returns
18 the minor number of the file format of the savefile. The version num‐
19 ber is stored in the header of the savefile.
20
21 If p refers to a live capture, the values returned by pcap_major_ver‐
22 sion() and pcap_minor_version() are not meaningful.
23
25 pcap(3PCAP)
26
27
28
29 5 April 2008 PCAP_MAJOR_VERSION(3PCAP)