]> 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>
Sat, 15 Apr 2023 13:13:57 +0000 (15:13 +0200)
commitc11bbbc043d7ecb7ee1b7e10672f7feb319a6b35
tree3c4e7c8ccfabcdde1062fa059afe7517741e6e78
parentfa59125ac48ea1cd069bfb561682975c57aef910
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