mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-13 03:30:35 +01:00
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:
parent
b24f0a46ae
commit
f2f72e8245
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue