summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_var.h
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2011-06-29 10:06:58 +0000
committerae <ae@FreeBSD.org>2011-06-29 10:06:58 +0000
commit6b5f802b89475290bd6d581f19f00d0326038be1 (patch)
tree39ec2dc897c198c72a20dac2c11a69066b5cb64f /sys/netinet/ip_var.h
parent93c32fd0711f841f49c0349d8c693ccc83913e1d (diff)
downloadFreeBSD-src-6b5f802b89475290bd6d581f19f00d0326038be1.zip
FreeBSD-src-6b5f802b89475290bd6d581f19f00d0326038be1.tar.gz
Add new rule actions "call" and "return" to ipfw. They make
possible to organize subroutines with rules. The "call" action saves the current rule number in the internal stack and rules processing continues from the first rule with specified number (similar to skipto action). If later a rule with "return" action is encountered, the processing returns to the first rule with number of "call" rule saved in the stack plus one or higher. Submitted by: Vadim Goncharov Discussed by: ipfw@, luigi@
Diffstat (limited to 'sys/netinet/ip_var.h')
-rw-r--r--sys/netinet/ip_var.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet/ip_var.h b/sys/netinet/ip_var.h
index e993279..cd30093 100644
--- a/sys/netinet/ip_var.h
+++ b/sys/netinet/ip_var.h
@@ -286,6 +286,7 @@ enum {
};
#define MTAG_IPFW 1148380143 /* IPFW-tagged cookie */
#define MTAG_IPFW_RULE 1262273568 /* rule reference */
+#define MTAG_IPFW_CALL 1308397630 /* call stack */
struct ip_fw_args;
typedef int (*ip_fw_chk_ptr_t)(struct ip_fw_args *args);
OpenPOWER on IntegriCloud