Skip to content

Commit bd25001

Browse files
ffmanceracathay4t
authored andcommitted
mptcp: fix comparison of flags in is_mptcp_flags_changed()
When showing and applying a state containing MPTCP flags definition, it was always bringing down and up the interface. This was caused by a wrong comparison in `is_mptcp_flags_changed()` function. This function was checking if the MPTCP flags changed and is used to decide if we can reapply or not. Fixes: https://issues.redhat.com/browse/RHEL-53211 Signed-off-by: Fernando Fernandez Mancera <[email protected]>
1 parent fd6e47d commit bd25001

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/src/lib/nm/query_apply/mptcp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub(crate) fn is_mptcp_flags_changed(
1313
.as_ref()
1414
.and_then(|c| c.mptcp_flags),
1515
) {
16-
(Some(flags), Some(cur_flags)) => flags == cur_flags,
16+
(Some(flags), Some(cur_flags)) => flags != cur_flags,
1717
_ => false,
1818
}
1919
}

0 commit comments

Comments
 (0)