ruleset: fix chain selection for mark and dscp targets
authorJo-Philipp Wich <jo@mein.io>
Sat, 22 Jan 2022 19:36:29 +0000 (20:36 +0100)
committerJo-Philipp Wich <jo@mein.io>
Sat, 22 Jan 2022 19:36:29 +0000 (20:36 +0100)
commit5f61dbfe219ac5f7ad7e5e04748357d0ebb3debc
treecd72ce60c0ec8cc26168e5b19f1dbfcc688a5142
parent16a10706f24393b11500408e586b495073622e85
ruleset: fix chain selection for mark and dscp targets

Align the chain selection logic for mark and dscp targets with the one
implemented in firewall3 with commit https://git.openwrt.org/61db17e

Also add corresponding testcases to assert the correct selection logic.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
root/usr/share/firewall4/templates/ruleset.uc
root/usr/share/ucode/fw4.uc
tests/01_configuration/01_ruleset
tests/02_zones/01_policies
tests/02_zones/02_masq
tests/02_zones/03_masq_src_dest_restrictions
tests/03_rules/01_direction
tests/03_rules/02_enabled
tests/03_rules/03_constraints
tests/03_rules/04_icmp
tests/03_rules/05_mangle [new file with mode: 0644]