network/routing-policy-rule: remove rules that have conflicting flags
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 19 Aug 2024 21:19:46 +0000 (06:19 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 20 Aug 2024 12:02:30 +0000 (21:02 +0900)
commit727235006a7e8904f8493d32376cffa6969c5fa9
treece7264ab4f6baa985e91190e68281d303d17789d
parent689438419bd0a18bb8408e2264b105426eb2566e
network/routing-policy-rule: remove rules that have conflicting flags

The kernel does not distinguish rules with different flags in
rule_exists(), but the flags of an existing rule cannot be updated.
Let's remove rules that have conflicting flags, and configure new rules
later with requested flags.
src/network/networkd-routing-policy-rule.c