manpagez: man pages & more
man pcap_perror(3)
Home | html | info | man
pcap_geterr(3)                                          pcap_geterr(3)


NAME

       pcap_geterr, pcap_perror - get or print libpcap error message text


SYNOPSIS

       #include <pcap/pcap.h>

       pcap_geterr(3) *p);
       void pcap_perror(pcap_t *p, const char *prefix);


DESCRIPTION

       pcap_geterr() returns the error text pertaining to the last pcap
       library error.  NOTE: the pointer it returns will no longer point to a
       valid error message string after the pcap_t passed to it is closed; you
       must use or copy the string before closing the pcap_t.

       pcap_perror() prints the text of the last pcap library error on stderr,
       prefixed by prefix.


SEE ALSO

       pcap(3), pcap_strerror(3)

                                15 January 2016             pcap_geterr(3)

libpcap 1.11.0 - Generated Tue Sep 15 08:26:14 CDT 2026
© manpagez.com 2000-2026
Individual documents may contain additional copyright information.