1PCAP_MAJOR_VERSION(3PCAP)                            PCAP_MAJOR_VERSION(3PCAP)
2
3
4

NAME

6       pcap_major_version,  pcap_minor_version  -  get the version number of a
7       savefile
8

SYNOPSIS

10       #include <pcap/pcap.h>
11
12       int pcap_major_version(pcap_t *p);
13       int pcap_minor_version(pcap_t *p);
14

DESCRIPTION

16       If p refers to a ``savefile'', pcap_major_version() returns  the  major
17       number  of the file format of the ``savefile'' and pcap_minor_version()
18       returns the minor number of the file format of the  ``savefile''.   The
19       version  number is stored in the ``savefile''; note that the meaning of
20       its values depends on the type of ``savefile'' (for  example,  pcap  or
21       pcap-NG).
22
23       If  p  refers to a live capture, the values returned by pcap_major_ver‐
24       sion() and pcap_minor_version() are not meaningful.
25

SEE ALSO

27       pcap(3PCAP)
28
29
30
31                                 5 April 2008        PCAP_MAJOR_VERSION(3PCAP)
Impressum