ruleset: fix emitting set_mark/set_xmark rules with masks
authorJo-Philipp Wich <jo@mein.io>
Fri, 14 Oct 2022 15:01:44 +0000 (17:01 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 14 Oct 2022 15:01:44 +0000 (17:01 +0200)
commit756f1e21ed77f2c0b3fc2c8128c808704f2cf61b
tree5532f9aefe04190fd78c6cf131740b3626ce1270
parent3db474135c62d1eeea7a80dd151d53d94005f1d5
ruleset: fix emitting set_mark/set_xmark rules with masks

Fix a bad variable access when emitting set_mark/set_xmark rules with
masks and add test coverage for the various mark target variants.

Fixes: #10965
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
root/usr/share/firewall4/templates/rule.uc
tests/03_rules/12_mark [new file with mode: 0644]