summaryrefslogtreecommitdiffstats
path: root/sbin/ipfw/ipfw2.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 /sbin/ipfw/ipfw2.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 'sbin/ipfw/ipfw2.h')
-rw-r--r--sbin/ipfw/ipfw2.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/ipfw/ipfw2.h b/sbin/ipfw/ipfw2.h
index 9562f32..bade0dd 100644
--- a/sbin/ipfw/ipfw2.h
+++ b/sbin/ipfw/ipfw2.h
@@ -99,6 +99,8 @@ enum tokens {
TOK_CHECKSTATE,
TOK_NAT,
TOK_REASS,
+ TOK_CALL,
+ TOK_RETURN,
TOK_ALTQ,
TOK_LOG,
OpenPOWER on IntegriCloud