mirror of
https://github.com/torvalds/linux.git
synced 2024-11-13 07:31:45 +00:00
Revert "sctp: Fix SHUTDOWN CTSN Ack in the peer restart case"
This reverts commit12dfd78e3a
. This can be reverted as shutdown and cookie_ack chunk are using the same asoc since commit35b4f24415
("sctp: do asoc update earlier in sctp_sf_do_dupcook_a"). Reported-by: Jere Leppänen <jere.leppanen@nokia.com> Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
22008f560b
commit
7aa4e54739
@ -858,11 +858,7 @@ struct sctp_chunk *sctp_make_shutdown(const struct sctp_association *asoc,
|
||||
struct sctp_chunk *retval;
|
||||
__u32 ctsn;
|
||||
|
||||
if (chunk && chunk->asoc)
|
||||
ctsn = sctp_tsnmap_get_ctsn(&chunk->asoc->peer.tsn_map);
|
||||
else
|
||||
ctsn = sctp_tsnmap_get_ctsn(&asoc->peer.tsn_map);
|
||||
|
||||
ctsn = sctp_tsnmap_get_ctsn(&asoc->peer.tsn_map);
|
||||
shut.cum_tsn_ack = htonl(ctsn);
|
||||
|
||||
retval = sctp_make_control(asoc, SCTP_CID_SHUTDOWN, 0,
|
||||
|
Loading…
Reference in New Issue
Block a user