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

Fixes: b8398b9e79 ('platform: add NMPRulesManager for syncing routing rules')
This commit is contained in:
Thomas Haller 2019-03-15 09:02:52 +01:00
parent b24f0a46ae
commit f2f72e8245

View file

@ -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