mptcp: allow creating non-backup subflows
Currently the 'backup' attribute of local endpoint is ignored. Let's use it for the MP_JOIN handshake Signed-off-by: Paolo Abeni <pabeni@redhat.com> Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
ef0da3b8a2
Коммит
4596a2c1b7
|
@ -20,6 +20,7 @@
|
|||
#include <net/ip6_route.h>
|
||||
#endif
|
||||
#include <net/mptcp.h>
|
||||
#include <uapi/linux/mptcp.h>
|
||||
#include "protocol.h"
|
||||
#include "mib.h"
|
||||
|
||||
|
@ -1090,7 +1091,7 @@ int __mptcp_subflow_connect(struct sock *sk, const struct mptcp_addr_info *loc,
|
|||
subflow->remote_token = remote_token;
|
||||
subflow->local_id = local_id;
|
||||
subflow->request_join = 1;
|
||||
subflow->request_bkup = 1;
|
||||
subflow->request_bkup = !!(loc->flags & MPTCP_PM_ADDR_FLAG_BACKUP);
|
||||
mptcp_info2sockaddr(remote, &addr);
|
||||
|
||||
err = kernel_connect(sf, (struct sockaddr *)&addr, addrlen, O_NONBLOCK);
|
||||
|
|
Загрузка…
Ссылка в новой задаче