OS Manuals

pcap_statustostr(3pcap)

pcap_statustostr - convert a PCAP_ERROR_ or PCAP_WARNING_ value to a string

PCAP_STATUSTOSTR(3PCAP) PCAP_STATUSTOSTR(3PCAP)

pcap_statustostr - convert a PCAP_ERROR_ or PCAP_WARNING_ value to a string

#include <pcap/pcap.h>
const char *pcap_statustostr(int error);

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

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.

pcap(3PCAP)

6 September 2026

libpcap 1.11.0-r0 · os · ingested 2026-09-30