diff options
author | Vlad Yasevich <vladislav.yasevich@hp.com> | 2009-07-31 00:08:28 +0200 |
---|---|---|
committer | Vlad Yasevich <vladislav.yasevich@hp.com> | 2009-09-05 00:20:56 +0200 |
commit | bec9640bb0d451813b1bb1f2cc13a5bfb17c3e48 (patch) | |
tree | 8c44f18560570c7200eed1a92cd0d9fab6c2a4f2 /include/net/sctp | |
parent | sctp: Fix piggybacked ACKs (diff) | |
download | linux-bec9640bb0d451813b1bb1f2cc13a5bfb17c3e48.tar.xz linux-bec9640bb0d451813b1bb1f2cc13a5bfb17c3e48.zip |
sctp: Disallow new connection on a closing socket
If a socket has a lot of association that are in the process of
of being closed/aborted, it is possible for a remote to establish
new associations during the time period that the old ones are shutting
down. If this was a result of a close() call, there will be no socket
and will cause a memory leak. We'll prevent this by setting the
socket state to CLOSING and disallow new associations when in this state.
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Diffstat (limited to 'include/net/sctp')
-rw-r--r-- | include/net/sctp/constants.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/sctp/constants.h b/include/net/sctp/constants.h index 8bc25f7b04ce..af8c1508109e 100644 --- a/include/net/sctp/constants.h +++ b/include/net/sctp/constants.h @@ -231,7 +231,7 @@ typedef enum { SCTP_SS_LISTENING = TCP_LISTEN, SCTP_SS_ESTABLISHING = TCP_SYN_SENT, SCTP_SS_ESTABLISHED = TCP_ESTABLISHED, - SCTP_SS_DISCONNECTING = TCP_CLOSING, + SCTP_SS_CLOSING = TCP_CLOSING, } sctp_sock_state_t; /* These functions map various type to printable names. */ |