pcap_lib_version(3pcap)

pcap_lib_version3pcap

Get the version information for libpcap

Usage

#include <pcap/pcap.h>

const char *pcap_lib_version(void);

Overview

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" and a space. 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 follow a space and additional text in an arbitrary human-readable form 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 (64-bit time_t, with zerocopy and netmap support)

Releases

9 releases since Debian 6.0 (Squeeze); the text changed 4 times.

  1. 6.0–7
  2. 8
  3. 9–10
  4. 11–13
  5. Arch

From libpcap 1.11.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.