pcap_statustostr(3pcap)

pcap_statustostr3pcap

Convert a pcap_error_ or pcap_warning_ value to a string

Usage

#include <pcap/pcap.h>

const char *pcap_statustostr(int error);

Overview

pcap_statustostr() converts a PCAP_ERROR_ or PCAP_WARNING_ value returned by a libpcap routine to an error or warning string.

Return value

The function never returns a null pointer; if the error argument is not a known error or warning value, it returns a generic message that shows the numeric value of the argument.

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.