diff options
author | Max Matveev <makc@redhat.com> | 2011-08-29 21:02:24 +0000 |
---|---|---|
committer | Willy Tarreau <w@1wt.eu> | 2014-05-19 07:53:16 +0200 |
commit | 88a5a5fa2a0f5ab9995d54f605f42a295202d042 (patch) | |
tree | 0ee09be682b51a628c4c429d12790324d0b4c90c /include | |
parent | 6c8fbb40df75444547dd4a6ee4dbc67af7e76c1b (diff) | |
download | lwn-88a5a5fa2a0f5ab9995d54f605f42a295202d042.tar.gz lwn-88a5a5fa2a0f5ab9995d54f605f42a295202d042.zip |
sctp: deal with multiple COOKIE_ECHO chunks
commit d5ccd496601b8776a516d167a6485754575dc38f upstream
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: Max Matveev <makc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
[dannf: backported to Debian's 2.6.32]
Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/sctp/command.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/sctp/command.h b/include/net/sctp/command.h index 2c55a7ea20af..0edc14d2d5e6 100644 --- a/include/net/sctp/command.h +++ b/include/net/sctp/command.h @@ -108,6 +108,7 @@ typedef enum { SCTP_CMD_UPDATE_INITTAG, /* Update peer inittag */ SCTP_CMD_SEND_MSG, /* Send the whole use message */ SCTP_CMD_SEND_NEXT_ASCONF, /* Send the next ASCONF after ACK */ + SCTP_CMD_SET_ASOC, /* Restore association context */ SCTP_CMD_LAST } sctp_verb_t; |