|
NAME | SYNOPSIS | DESCRIPTION | SEE ALSO | COLOPHON |
|
|
|
PCAP_LIB_VERSION(3PCAP) PCAP_LIB_VERSION(3PCAP)
pcap_lib_version - get the version information for libpcap
#include <pcap/pcap.h>
const char *pcap_lib_version(void);
pcap_lib_version() returns a pointer to a string giving
information about the version of the libpcap library being used.
The string begins with the words "libpcap version". Then follows
the version, which consists of three dot-separated numbers and the
optional "-PRE-GIT" suffix to indicate a development snapshot,
same as in the output of pcap-config --version in sufficiently
recent libpcap releases. After the version often follows
additional text to indicate particular features. For example:
an old release, on any OS
libpcap version 1.5.3
a newer release on a Linux host
libpcap version 1.10.4 (with TPACKET_V3)
the same, built with DAG support only
libpcap version 1.10.4 (DAG-only)
a development snapshot on a FreeBSD host
libpcap version 1.11.0-PRE-GIT (with zerocopy support)
pcap-config(1), pcap(3PCAP)
This page is part of the libpcap (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 is not part of the original manual page), send a mail to
[email protected]
22 December 2024 PCAP_LIB_VERSION(3PCAP)