mptcp: drop port parameter of mptcp_pm_add_addr_signal
Drop the port parameter of mptcp_pm_add_addr_signal() and reflect it to avoid passing too many parameters. Signed-off-by: Geliang Tang <geliang.tang@suse.com> Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
742e2f36c0
commit
af7939f390
@@ -652,7 +652,6 @@ static bool mptcp_established_options_add_addr(struct sock *sk, struct sk_buff *
|
||||
bool drop_other_suboptions = false;
|
||||
unsigned int opt_size = *size;
|
||||
bool echo;
|
||||
bool port;
|
||||
int len;
|
||||
|
||||
/* add addr will strip the existing options, be sure to avoid breaking
|
||||
@@ -661,12 +660,12 @@ static bool mptcp_established_options_add_addr(struct sock *sk, struct sk_buff *
|
||||
if (!mptcp_pm_should_add_signal(msk) ||
|
||||
(opts->suboptions & (OPTION_MPTCP_MPJ_ACK | OPTION_MPTCP_MPC_ACK)) ||
|
||||
!mptcp_pm_add_addr_signal(msk, skb, opt_size, remaining, &opts->addr,
|
||||
&echo, &port, &drop_other_suboptions))
|
||||
&echo, &drop_other_suboptions))
|
||||
return false;
|
||||
|
||||
if (drop_other_suboptions)
|
||||
remaining += opt_size;
|
||||
len = mptcp_add_addr_len(opts->addr.family, echo, port);
|
||||
len = mptcp_add_addr_len(opts->addr.family, echo, !!opts->addr.port);
|
||||
if (remaining < len)
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user