aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/ip_fw.h
diff options
context:
space:
mode:
authorAlexander V. Chernikov <melifaro@FreeBSD.org>2014-08-12 15:51:48 +0000
committerAlexander V. Chernikov <melifaro@FreeBSD.org>2014-08-12 15:51:48 +0000
commit1940fa77278f0ec2ff1d3a8a174dbf5785d8e70e (patch)
treea8fa20927c28cd192b16b34d205f195ff47c0df4 /sys/netinet/ip_fw.h
parent56f43a5e98695a187837094740286c60fdcc0de0 (diff)
downloadsrc-1940fa77278f0ec2ff1d3a8a174dbf5785d8e70e.tar.gz
src-1940fa77278f0ec2ff1d3a8a174dbf5785d8e70e.zip
Notes
Diffstat (limited to 'sys/netinet/ip_fw.h')
-rw-r--r--sys/netinet/ip_fw.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/netinet/ip_fw.h b/sys/netinet/ip_fw.h
index 4d6c3baf5f85..e5e1179cfdc8 100644
--- a/sys/netinet/ip_fw.h
+++ b/sys/netinet/ip_fw.h
@@ -47,18 +47,17 @@
/*
* Most commands (queue, pipe, tag, untag, limit...) can have a 16-bit
- * argument between 1 and 65534. The value 0 is unused, the value
- * 65535 (IP_FW_TABLEARG) is used to represent 'tablearg', i.e. the
- * can be 1..65534, or 65535 to indicate the use of a 'tablearg'
+ * argument between 1 and 65534. The value 0 (IP_FW_TARG) is used
+ * to represent 'tablearg' value, e.g. indicate the use of a 'tablearg'
* result of the most recent table() lookup.
* Note that 16bit is only a historical limit, resulting from
* the use of a 16-bit fields for that value. In reality, we can have
- * 2^32 pipes, queues, tag values and so on, and use 0 as a tablearg.
- * Note there are some opcodes where value 0 is perfectly valid (fib, dscp).
+ * 2^32 pipes, queues, tag values and so on.
*/
#define IPFW_ARG_MIN 1
#define IPFW_ARG_MAX 65534
-#define IP_FW_TABLEARG 65535
+#define IP_FW_TABLEARG 65535 /* Compat value for old clients */
+#define IP_FW_TARG 0 /* Current tablearg value */
/*
* Number of entries in the call stack of the call/return commands.