]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
CLASSIFY: document non-standard interpretation behavior
authorJan Engelhardt <jengelh@medozas.de>
Sat, 4 Apr 2009 16:43:15 +0000 (18:43 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Sat, 4 Apr 2009 16:45:11 +0000 (18:45 +0200)
Most other extensions use strtoul (by means of xtables_strtoui)
and would abide by the standard convention of hex/octal prefixes
0x/0, and decimal otherwise, but CLASSIFY is an exception.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
extensions/libxt_CLASSIFY.c
extensions/libxt_CLASSIFY.man

index 119922d0e43032eba6655370057fa1bc712faf37..7db2e4cd522ac3faaa0cc9502e32522713098e47 100644 (file)
@@ -15,7 +15,7 @@ CLASSIFY_help(void)
 {
        printf(
 "CLASSIFY target options:\n"
-"  --set-class [MAJOR:MINOR]    Set skb->priority value\n");
+"--set-class MAJOR:MINOR    Set skb->priority value (always hexadecimal!)\n");
 }
 
 static const struct option CLASSIFY_opts[] = {
index 578883e3ee0c46f8455f62dc79ea2b93f84a534b..0270fd1811259e6b4d19dc5ec0f30cad14c4af47 100644 (file)
@@ -1,4 +1,5 @@
 This module allows you to set the skb\->priority value (and thus classify the packet into a specific CBQ class).
 .TP
 \fB\-\-set\-class\fP \fImajor\fP\fB:\fP\fIminor\fP
-Set the major and minor class value.
+Set the major and minor class value. The values are always interpreted as
+hexadecimal even if no 0x prefix is given.