]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commit
rules.pl: Introduce set_loader mechanism
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 15 Apr 2023 13:13:57 +0000 (15:13 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 3 Mar 2024 11:56:03 +0000 (12:56 +0100)
commitc5051c56f1bcbe627080407c9ca11195b5afac9f
treeaca46a26511316a06c7359ecd1b546e0eb991a65
parent66d8f7b0900ee6717db15fef872fe525601253db
rules.pl: Introduce set_loader mechanism

This introduces a mechanism where each setname and the function
which is used to proper load this set are stored in a hash.

The load_set function will use this information to call the correct
function.

To register a set loader the register_set_loader function can be used by
specifying the function name and an array of affected set names.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/firewall/rules.pl