diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2009-06-25 17:13:46 +0200 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2009-06-26 21:13:10 +0200 |
commit | 9a8fc4f89ef120d7beda3724994a1544346b947d (patch) | |
tree | e45df4959a4b7f3ffad270b35859808a4a16ec51 /xtables.c | |
parent | 7d68df47fad305673958351a4e2a5c6e75927caa (diff) |
xtables: add multi-registration functions
Similar to the ones that are present in the kernel.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'xtables.c')
-rw-r--r-- | xtables.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -794,6 +794,13 @@ void xtables_register_match(struct xtables_match *me) me->mflags = 0; } +void xtables_register_matches(struct xtables_match *match, unsigned int n) +{ + do { + xtables_register_match(&match[--n]); + } while (n > 0); +} + void xtables_register_target(struct xtables_target *me) { struct xtables_target *old; @@ -868,6 +875,13 @@ void xtables_register_target(struct xtables_target *me) me->tflags = 0; } +void xtables_register_targets(struct xtables_target *target, unsigned int n) +{ + do { + xtables_register_target(&target[--n]); + } while (n > 0); +} + /** * xtables_param_act - act on condition * @status: a constant from enum xtables_exittype |