• Max Matveev's avatar
    sctp: deal with multiple COOKIE_ECHO chunks · d5ccd496
    Max Matveev authored
    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>
    d5ccd496
command.h 8.85 KB