1PCAP_GETERR(3PCAP)                                          PCAP_GETERR(3PCAP)
2
3
4

NAME

6       pcap_geterr, pcap_perror - get or print libpcap error message text
7

SYNOPSIS

9       #include <pcap/pcap.h>
10
11       char *pcap_geterr(pcap_t *p);
12       void pcap_perror(pcap_t *p, char *prefix);
13

DESCRIPTION

15       pcap_geterr()  returns  the  error  text  pertaining  to  the last pcap
16       library error.  NOTE: the pointer it returns will no longer point to  a
17       valid error message string after the pcap_t passed to it is closed; you
18       must use or copy the string before closing the pcap_t.
19
20       pcap_perror() prints the text of the last pcap library error on stderr,
21       prefixed by prefix.
22

SEE ALSO

24       pcap(3PCAP)
25
26
27
28                                 5 April 2008               PCAP_GETERR(3PCAP)
Impressum