ipq_errstr(3)

ipq_errstr3

Libipq error handling routines

Usage

#include <linux/netfilter.h>
#include <libipq.h>

char *ipq_errstr(void);
void ipq_perror(const char *s);

Overview

The ipq_errstr function returns a descriptive error message based on the current value of the internal ipq_errno variable. All libipq API functions set this internal variable upon failure.

The ipq_perror function prints an error message to stderr corresponding to the current value of the internal ipq_error variable, and the global errno variable (if set). The error message is prefixed with the string s as supplied by the application. If s is NULL, the error message is prefixed with the string "ERROR".

Return value

ipq_errstr returns an error message as outlined above.

Releases

8 releases since Debian 3.0 (Woody); the text changed 4 times.

  1. 3.0–3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7–Arch

Bugs

None known.

Author

James Morris <[email protected]>

From iptables 1:1.8.13-1 in Arch Linux 2026-11-01. Also shipped by iptables-legacy. Parsed by carta from the page's man source.