Movatterモバイル変換


[0]ホーム

URL:


man7.org > Linux >man-pages

Linux/UNIX system programming training


pcap_major_version(3pcap) — Linux manual page

NAME |SYNOPSIS |DESCRIPTION |SEE ALSO |COLOPHON

PCAP_MAJOR_VERSION(3PCAP)PCAP_MAJOR_VERSION(3PCAP)

NAME        top

       pcap_major_version, pcap_minor_version - get the version number of       a savefile

SYNOPSIS        top

#include <pcap/pcap.h>int pcap_major_version(pcap_t *p);int pcap_minor_version(pcap_t *p);

DESCRIPTION        top

       Ifp refers to a ``savefile'',pcap_major_version() returns the       major number of the file format of the ``savefile'' andpcap_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).       Ifp refers to a live capture, the values returned bypcap_major_version() andpcap_minor_version() are not meaningful.

SEE ALSO        top

pcap(3PCAP)

COLOPHON        top

       This page is part of thelibpcap (packet capture library) project.       Information about the project can be found at        ⟨http://www.tcpdump.org/⟩.  If you have a bug report for this       manual page, see ⟨http://www.tcpdump.org/#patches⟩.  This page was       obtained from the project's upstream Git repository       ⟨https://github.com/the-tcpdump-group/libpcap.git⟩ on 2025-08-11.       (At that time, the date of the most recent commit that was found       in the repository was 2025-08-10.)  If you discover any rendering       problems in this HTML version of the page, or you believe there is       a better or more up-to-date source for the page, or you have       corrections or improvements to the information in this COLOPHON       (which isnot part of the original manual page), send a mail to       man-pages@man7.org                              8 January 2018PCAP_MAJOR_VERSION(3PCAP)


HTML rendering created 2025-09-06 byMichael Kerrisk, author ofThe Linux Programming Interface.

For details of in-depthLinux/UNIX system programming training courses that I teach, lookhere.

Hosting byjambit GmbH.

Cover of TLPI


[8]ページ先頭

©2009-2025 Movatter.jp