Commit f2f72e82 authored by Thomas Haller's avatar Thomas Haller

platform/tests: workaround FIB_RULE_INVERT of rules for kernel issue rh#1686075

Fixes: b8398b9e ('platform: add NMPRulesManager for syncing routing rules')
parent b24f0a46
......@@ -1300,6 +1300,10 @@ _rule_fuzzy_equal (const NMPObject *obj,
rr_co.flow = 0;
if (rr->tos == 0)
rr_co.tos = 0;
if (!NM_FLAGS_HAS (rr->flags, FIB_RULE_INVERT))
rr_co.flags &= ~((guint32) FIB_RULE_INVERT);
else
rr_co.flags |= ((guint32) FIB_RULE_INVERT);
break;
case RTM_DELRULE:
/* when deleting a rule with RTM_DELRULE, kernel tries to find the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment