1 .TH IPQ_ERRSTR 3 "16 October 2001" "Linux iptables 1.2" "Linux Programmer's Manual"
3 .\" $Id: ipq_errstr.3 1041 2001-10-16 14:41:02Z jamesm $
5 .\" Copyright (c) 2000 Netfilter Core Team
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.
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.
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.
23 ipq_errstr, ipq_perror - libipq error handling routines
25 .B #include <linux/netfilter.h>
27 .B #include <libipq.h>
29 .BI "char *ipq_errstr(" void );
31 .BI "void ipq_perror(const char *" s );
35 function returns a descriptive error message based on the current
38 variable. All libipq API functions set this internal variable
43 function prints an error message to stderr corresponding to the
44 current value of the internal
46 variable, and the global
48 variable (if set). The error message is prefixed with the string
50 as supplied by the application. If
52 is NULL, the error message is prefixed with the string "ERROR".
55 returns an error message as outlined above.
59 James Morris <jmorris@intercode.com.au>
61 Copyright (c) 2000-2001 Netfilter Core Team.
63 Distributed under the GNU General Public License.