mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-27 07:00:40 +01:00
mptcp: fix error handling rp_filter when kernel don't support mptcp
When the kernel don't support mptcp, NetworkManager should disable mptcp
and shouldn't change rp_filter from 1 to 2. However, when checking file
/proc/sys/net/mptcp/enabled, val v's type is defined to guint32, and
nm_platform_sysctl_get_int32 return -1, v becomes a very large number
and can't set mptcp_flags to NM_MPTCP_FLAGS_DISABLED.
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1686
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2093
Fixes: c00873e08f ('mptcp: rework "connection.mptcp-flags" for enabling MPTCP')
This commit is contained in:
parent
83d99669f5
commit
9c42177d09
1 changed files with 1 additions and 1 deletions
|
|
@ -1489,7 +1489,7 @@ _prop_get_connection_mptcp_flags(NMDevice *self)
|
|||
|
||||
if (!NM_FLAGS_HAS(mptcp_flags, NM_MPTCP_FLAGS_DISABLED)) {
|
||||
if (!NM_FLAGS_HAS(mptcp_flags, NM_MPTCP_FLAGS_ALSO_WITHOUT_SYSCTL)) {
|
||||
guint32 v;
|
||||
gint32 v;
|
||||
|
||||
/* If enabled, but without "also-without-sysctl", then MPTCP is still
|
||||
* disabled, if the sysctl says so...
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue