Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | nft: Leave interface masks alone when parsing from kernel | Phil Sutter | 2023-11-29 | 1 | -3/+2 |
| | | | | | | | | The mask is entirely unused by nft-variants in general and legacy ones when printing. It is relevant only when inserting a legacy rule into kernel as it doesn't detect the '+'-suffix. Signed-off-by: Phil Sutter <phil@nwl.cc> | ||||
* | nft-ruleparse: Introduce nft_create_target() | Phil Sutter | 2023-08-10 | 1 | -1/+0 |
| | | | | | | | | | | | | | | | | Like nft_create_match(), this is a small wrapper around the typical target extension lookup and (standard) init code. To use it from nft_parse_target() and nft_parse_log(), introduce an inner variant which accepts the target payload size as parameter. The call to rule_parse_ops::target callback was problematic with standard target, because the callbacks initialized iptables_command_state::jumpto with the target name, "standard" in that case. Perform its tasks in nft_create_target(), keep it only for bridge family's special handling of watcher "targets". Signed-off-by: Phil Sutter <phil@nwl.cc> | ||||
* | nft: ruleparse: Create family-specific source files | Phil Sutter | 2023-05-03 | 1 | -0/+135 |
Extract the remaining nftnl rule parsing code from nft-<family>.c sources into dedicated ones to complete the separation. Signed-off-by: Phil Sutter <phil@nwl.cc> |