summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2009-04-04 18:43:15 +0200
committerJan Engelhardt <jengelh@medozas.de>2009-04-04 18:45:11 +0200
commitc9ccba543b52cb443f110670420967ac6a41c302 (patch)
tree8a386c6f839c20fec0bc718e5792faf9338fc2d4 /extensions
parentea6f406fa77aa7b4fc52ccc9b572ae96196e570d (diff)
CLASSIFY: document non-standard interpretation behavior
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>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/libxt_CLASSIFY.c2
-rw-r--r--extensions/libxt_CLASSIFY.man3
2 files changed, 3 insertions, 2 deletions
diff --git a/extensions/libxt_CLASSIFY.c b/extensions/libxt_CLASSIFY.c
index 119922d0..7db2e4cd 100644
--- a/extensions/libxt_CLASSIFY.c
+++ b/extensions/libxt_CLASSIFY.c
@@ -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[] = {
diff --git a/extensions/libxt_CLASSIFY.man b/extensions/libxt_CLASSIFY.man
index 578883e3..0270fd18 100644
--- a/extensions/libxt_CLASSIFY.man
+++ b/extensions/libxt_CLASSIFY.man
@@ -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.