fw4: rework and fix family inheritance logic
authorJo-Philipp Wich <jo@mein.io>
Sat, 12 Feb 2022 19:13:06 +0000 (20:13 +0100)
committerJo-Philipp Wich <jo@mein.io>
Sat, 12 Feb 2022 19:41:13 +0000 (20:41 +0100)
commit9fe58f51e1e12eadac82d04a34fb024b012bc912
tree8865cc0d3a63d8a96fde50399bc238d40c5e9942
parent87952960834445b23a6d5dc34e2a0439f1b9fa60
fw4: rework and fix family inheritance logic

Fix various quirks in the logic inferring the effective rule family from
referenced entities, consider subnet matches when determining family of
zones and set the zone family to the determined value in case it is
unspecified in configuration.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
root/usr/share/ucode/fw4.uc
tests/03_rules/08_family_inheritance [new file with mode: 0644]