NAME         top

       pcap_major_version,  pcap_minor_version - get the version number of a

SYNOPSIS         top

       #include <pcap/pcap.h>

       int pcap_major_version(pcap_t *p);
       int pcap_minor_version(pcap_t *p);

DESCRIPTION         top

       If p refers to a ``savefile'', pcap_major_version() returns the major
       number of the file format of the ``savefile'' and
       pcap_minor_version() returns the minor number of the file format of
       the ``savefile''.  The version number is stored in the ``savefile'';
       note that the meaning of its values depends on the type of
       ``savefile'' (for example, pcap or pcapng).

       If p refers to a live capture, the values returned by
       pcap_major_version() and pcap_minor_version() are not meaningful.

SEE ALSO         top


COLOPHON         top

       This page is part of the libpcap (packet capture library) project.
       Information about the project can be found at 
       ⟨⟩.  If you have a bug report for this manual
       page, see ⟨⟩.  This page was obtained
       from the project's upstream Git repository
       ⟨⟩ on 2018-04-30.
       (At that time, the date of the most recent commit that was found in
       the repository was 2018-04-30.)  If you discover any rendering prob‐
       lems in this HTML version of the page, or you believe there is a bet‐
       ter or more up-to-date source for the page, or you have corrections
       or improvements to the information in this COLOPHON (which is not
       part of the original manual page), send a mail to

                                7 April 2014       PCAP_MAJOR_VERSION(3PCAP)