-
Notifications
You must be signed in to change notification settings - Fork 114
Open
Description
Splitting the logic into two separate functions just seems to make the code more complicated, looking at iptables where we mostly use different table that may have made more sense but if we consider the nftables driver this seems like the wrong choice.
For nftables we only need to dump the rules once yet because the code is split into two functions calls we end up dumping the ruleset twice which makes things slower than it needs to be.
Line 94 in ad066d4
let existing_rules = helper::get_current_ruleset(None, None)?; |
Line 548 in ad066d4
let existing_rules = helper::get_current_ruleset(None, None)?; |
The same goes for the teardown functions.
Metadata
Metadata
Assignees
Labels
No labels