mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-15 19:01:19 +01:00
Update comments in the Rules module
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
2805d16246
commit
17ed14a895
@ -65,11 +65,7 @@ our @actionstack;
|
|||||||
|
|
||||||
# Action Table
|
# Action Table
|
||||||
#
|
#
|
||||||
# %actions{ <action1> => { requires => { <requisite1> = 1,
|
# %actions{ actchain => used to eliminate collisions, active => 0|1 - 1 means that the action is in the action stack }
|
||||||
# <requisite2> = 1,
|
|
||||||
# ...
|
|
||||||
# } ,
|
|
||||||
# actchain => <action chain number> # Used for generating unique chain names for each <level>:<tag> pair.
|
|
||||||
#
|
#
|
||||||
our %actions;
|
our %actions;
|
||||||
#
|
#
|
||||||
@ -92,8 +88,8 @@ sub initialize( $ ) {
|
|||||||
%macros = ();
|
%macros = ();
|
||||||
@actionstack = ();
|
@actionstack = ();
|
||||||
$macro_nest_level = 0;
|
$macro_nest_level = 0;
|
||||||
%actions = ();
|
%actions = ();
|
||||||
%usedactions = ();
|
%usedactions = ();
|
||||||
|
|
||||||
if ( $family == F_IPV4 ) {
|
if ( $family == F_IPV4 ) {
|
||||||
@builtins = qw/dropBcast allowBcast dropNotSyn rejNotSyn dropInvalid allowInvalid allowinUPnP forwardUPnP Limit/;
|
@builtins = qw/dropBcast allowBcast dropNotSyn rejNotSyn dropInvalid allowInvalid allowinUPnP forwardUPnP Limit/;
|
||||||
@ -268,7 +264,7 @@ sub createactionchain( $ ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Mark an action as used and create its chain. Returns one if the chain was
|
# Mark an action as used and create its chain. Returns a reference to the chain if the chain was
|
||||||
# created on this call or 0 otherwise.
|
# created on this call or 0 otherwise.
|
||||||
#
|
#
|
||||||
sub use_action( $ ) {
|
sub use_action( $ ) {
|
||||||
@ -439,9 +435,9 @@ sub map_old_actions( $ ) {
|
|||||||
# a) The related action definition file is located.
|
# a) The related action definition file is located.
|
||||||
# a) The action is added to the target table
|
# a) The action is added to the target table
|
||||||
#
|
#
|
||||||
# The second phase (process_actions2) occurs after the policy file is scanned. Each default action's file
|
# The second phase (process_actions2) occurs after the policy file is scanned. Each policy action's chain is
|
||||||
# is processed by process_action2(). That function recursively processes action files up the action
|
# created and its action's file is processed by process_action2(). That function recursively processes action
|
||||||
# invocation tree, adding to the %usedactions hash as each new action is discovered.
|
# files up the action invocation tree, adding to the %usedactions hash as each new action is discovered.
|
||||||
#
|
#
|
||||||
# During rules file processing, process_action2() is called when a new action:level:tag:params is encountered.
|
# During rules file processing, process_action2() is called when a new action:level:tag:params is encountered.
|
||||||
# Again, each new such tupple is entered into the %usedactions hash.
|
# Again, each new such tupple is entered into the %usedactions hash.
|
||||||
|
Loading…
Reference in New Issue
Block a user