]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
man: iptables.8: Extend exit code description
authorPhil Sutter <phil@nwl.cc>
Tue, 1 Aug 2023 19:24:15 +0000 (21:24 +0200)
committerPhil Sutter <phil@nwl.cc>
Fri, 4 Aug 2023 23:28:50 +0000 (01:28 +0200)
Codes 3 and 4 were missing.

Reported-by: Steven Barre <steven.barre@dxcas.com>
Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1353
Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/iptables.8.in

index f81c632f2be866b5ba45873161519513b553c041..2dd1406615106ab6530e6fba857cf05386688496 100644 (file)
@@ -410,9 +410,12 @@ the default setting.
 iptables can use extended packet matching and target modules.
 A list of these is available in the \fBiptables\-extensions\fP(8) manpage.
 .SH DIAGNOSTICS
-Various error messages are printed to standard error.  The exit code
-is 0 for correct functioning.  Errors which appear to be caused by
-invalid or abused command line parameters cause an exit code of 2, and
+Various error messages are printed to standard error.  The exit code is 0 for
+correct functioning.  Errors which appear to be caused by invalid or abused
+command line parameters cause an exit code of 2. Errors which indicate an
+incompatibility between kernel and user space cause an exit code of 3. Errors
+which indicate a resource problem, such as a busy lock, failing memory
+allocation or error messages from kernel cause an exit code of 4. Finally,
 other errors cause an exit code of 1.
 .SH BUGS
 Bugs?  What's this? ;-)