• M
    sctp: deal with multiple COOKIE_ECHO chunks · d5ccd496
    Max Matveev 提交于
    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: NMax Matveev <makc@redhat.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    d5ccd496
sm_sideeffect.c 47.8 KB