Skip to content
Commit d5ccd496 authored by Max Matveev's avatar Max Matveev Committed by David S. Miller
Browse files

sctp: deal with multiple COOKIE_ECHO chunks



Attempt to reduce the number of IP packets emitted in response to single
SCTP packet (2e3216cd) introduced a complication - if a packet contains
two COOKIE_ECHO chunks and nothing else then SCTP state machine corks the
socket while processing first COOKIE_ECHO and then loses the association
and forgets to uncork the socket. To deal with the issue add new SCTP
command which can be used to set association explictly. Use this new
command when processing second COOKIE_ECHO chunk to restore the context
for SCTP state machine.

Signed-off-by: default avatarMax Matveev <makc@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fb82fd20
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment