1IPQ_ERRSTR(3) Linux Programmer's Manual IPQ_ERRSTR(3)
2
3
4
6 ipq_errstr, ipq_perror — libipq error handling routines
7
9 #include <linux/netfilter.h>
10 #include <libipq.h>
11
12 char *ipq_errstr(void);
13 void ipq_perror(const char *s);
14
16 The ipq_errstr function returns a descriptive error message based on
17 the current value of the internal ipq_errno variable. All libipq API
18 functions set this internal variable upon failure.
19
20 The ipq_perror function prints an error message to stderr corresponding
21 to the current value of the internal ipq_error variable, and the global
22 errno variable (if set). The error message is prefixed with the string
23 s as supplied by the application. If s is NULL, the error message is
24 prefixed with the string "ERROR".
25
27 ipq_errstr returns an error message as outlined above.
28
30 None known.
31
33 James Morris <jmorris@intercode.com.au>
34
36 Copyright (c) 2000-2001 Netfilter Core Team.
37
38 Distributed under the GNU General Public License.
39
41 iptables(8), libipq(3).
42
43
44
45Linux iptables 1.2 16 October 2001 IPQ_ERRSTR(3)