From f0f6266342a9b10f9eaac9e968aabb3769b9d3e5 Mon Sep 17 00:00:00 2001 From: rrs Date: Tue, 11 May 2010 17:02:29 +0000 Subject: 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. --- sys/netinet/sctp_constants.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/netinet/sctp_constants.h') 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) -- cgit v1.1