Prints the passed-in prefix, followed by the most recent error text.
pcap Library (libpcap.a)
#include <pcap.h>
void pcap_perror(pcap_t * p, char * prefix);
The pcap_perror subroutine prints the text of the last pcap library error to stderr, prefixed by prefix. If there were no previous errors, only prefix is printed.
The pcap_geterr (pcap_geterr Subroutine) subroutine, pcap_open_live (pcap_open_live Subroutine) subroutine, pcap_open_offline (pcap_open_offline Subroutine) subroutine, pcap_strerror (pcap_strerror Subroutine) subroutine.