mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-12 08:09:56 +00:00
sctp: fix ignoring asoc_id for tcp-style sockets on SCTP_DELAYED_SACK sockopt
A similar fix as Patch "sctp: fix ignoring asoc_id for tcp-style sockets on SCTP_DEFAULT_SEND_PARAM sockopt" on SCTP_DELAYED_SACK sockopt. Fixes: 9c5829e1c49e ("sctp: use SCTP_FUTURE_ASSOC and add SCTP_CURRENT_ASSOC for SCTP_DELAYED_SACK sockopt") Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
1354e72fab
commit
8e2614fc1c
@ -2920,6 +2920,9 @@ static int sctp_setsockopt_delayed_ack(struct sock *sk,
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (sctp_style(sk, TCP))
|
||||
params.sack_assoc_id = SCTP_FUTURE_ASSOC;
|
||||
|
||||
if (params.sack_assoc_id == SCTP_FUTURE_ASSOC ||
|
||||
params.sack_assoc_id == SCTP_ALL_ASSOC) {
|
||||
if (params.sack_delay) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user