pcap_strerror(3pcap)

pcap_strerror3pcap

Convert an errno value to a string

Usage

#include <pcap/pcap.h>

const char *pcap_strerror(int error);

Overview

This function returns an error message string corresponding to error. It uses either strerror(3) or its thread-safe variant if one is available, which currently is the case in every supported OS.

Backward compatibility

This function was not thread-safe in libpcap before 1.8.1 on Windows and in libpcap before 1.10.5 on all other OSes.

Releases

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

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

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