blob: ec43ff6bb859511ce3997807577f847aa9b9685a [file] [log] [blame]
James Morris949810c2000-11-20 14:13:31 +00001.TH IPQ_ERRSTR 3 "18 November 2000" "Linux iptables 1.1.3+" "Linux Programmer's Manual"
2.\"
3.\" $Id: $
4.\"
5.\" Copyright (c) 2000 Netfilter Core Team
6.\"
7.\" This program is free software; you can redistribute it and/or modify
8.\" it under the terms of the GNU General Public License as published by
9.\" the Free Software Foundation; either version 2 of the License, or
10.\" (at your option) any later version.
11.\"
12.\" This program is distributed in the hope that it will be useful,
13.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
14.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15.\" GNU General Public License for more details.
16.\"
17.\" You should have received a copy of the GNU General Public License
18.\" along with this program; if not, write to the Free Software
19.\" Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20.\"
21.\"
22.SH NAME
23ipq_errstr, ipq_perror - libipq error handling routines
24.SH SYNOPSIS
25.B #include <linux/netfilter.h>
26.br
27.B #include <libipq.h>
28.sp
29.BI "char *ipq_errstr(" void );
30.br
31.BI "void ipq_perror(const char *" s );
32.SH DESCRIPTION
33The
34.B ipq_errstr
35function returns a descriptive error message based on the current
36value of the internal
37.B ipq_errno
38variable. All libipq API functions set this internal variable
39upon failure.
40.PP
41The
42.B ipq_perror
43function prints an error message to stderr corresponding to the
44current value of the internal
45.B ipq_error
46variable, and the global
47.B errno
48variable (if set). The error message is prefixed with the string
49.I s
50as supplied by the application. If
51.I s
52is NULL, the error message is prefixed with the string "ERROR".
53.SH RETURN VALUE
54.B ipq_errstr
55returns an error message as outlined above.
56.SH BUGS
57None known.
58.SH AUTHOR
59James Morris <jmorris@intercode.com.au>
60.SH COPYRIGHT
61Copyright (c) 2000 Netfilter Core Team.
62.PP
63Distributed under the GNU General Public License.
64.SH SEE ALSO
65.BR iptables (8),
66.BR libipq (3).