diff options
author | rrs <rrs@FreeBSD.org> | 2010-05-11 17:02:29 +0000 |
---|---|---|
committer | rrs <rrs@FreeBSD.org> | 2010-05-11 17:02:29 +0000 |
commit | f0f6266342a9b10f9eaac9e968aabb3769b9d3e5 (patch) | |
tree | 5a6d9c418f24b6f2d62b90370b6c28e3887aee42 /sys/netinet/sctp_constants.h | |
parent | 13e644c236ca3b1e5586457826f428eca8903282 (diff) | |
download | FreeBSD-src-f0f6266342a9b10f9eaac9e968aabb3769b9d3e5.zip FreeBSD-src-f0f6266342a9b10f9eaac9e968aabb3769b9d3e5.tar.gz |
This fixes a bug with the one-2-one model socket when a
user sets up a socket to a server sends data and closes
the socket before the server has called accept(). It used
to NOT work at all. Now we add a flag to the assoc and
defer assoc cleanup so that the accept will suceed.
Diffstat (limited to 'sys/netinet/sctp_constants.h')
-rw-r--r-- | sys/netinet/sctp_constants.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet/sctp_constants.h b/sys/netinet/sctp_constants.h index 3d88631..c9e399f 100644 --- a/sys/netinet/sctp_constants.h +++ b/sys/netinet/sctp_constants.h @@ -498,6 +498,7 @@ __FBSDID("$FreeBSD$"); #define SCTP_STATE_ABOUT_TO_BE_FREED 0x0200 #define SCTP_STATE_PARTIAL_MSG_LEFT 0x0400 #define SCTP_STATE_WAS_ABORTED 0x0800 +#define SCTP_STATE_IN_ACCEPT_QUEUE 0x1000 #define SCTP_STATE_MASK 0x007f #define SCTP_GET_STATE(asoc) ((asoc)->state & SCTP_STATE_MASK) |