diff options
author | rrs <rrs@FreeBSD.org> | 2007-08-06 15:46:46 +0000 |
---|---|---|
committer | rrs <rrs@FreeBSD.org> | 2007-08-06 15:46:46 +0000 |
commit | 50d4dc714d27bf6c05cca0ecd6de2771fbc27e75 (patch) | |
tree | c921bd8428184a6766eefb361eecbb050ab5d3ff /sys/netinet/sctp_usrreq.c | |
parent | 23574c86734ab5cb088584d30345e698cbbeaef2 (diff) | |
download | FreeBSD-src-50d4dc714d27bf6c05cca0ecd6de2771fbc27e75.zip FreeBSD-src-50d4dc714d27bf6c05cca0ecd6de2771fbc27e75.tar.gz |
- change number assignments for SHA225-512 (match artisync
for bakeoff.. using the next sequential ones)
- In cookie processing 1-2-1, we did not increment the stcb
refcnt before releasing the tcb lock. We need to do this
to keep the tcb from being freed by a abort or ?? unlikely
but worth doing. Also get rid of unneed INP_WLOCK.
- extra receive info included the rcvinfo which killed the
padding/alignment. We now redefine all the fields properly
so they both align properly both to 128 bytes.
- A peeled off socket would not close without an error due to
its misguided idea that sctp_disconnect() was not supported
on it. This fixes it so it goes through the proper path.
- When an assoc was being deleted after abort (via a timer) a
small race condition exists where we might take a packet for
the old assoc (since we are waiting for a cleanup timer). This
state especially happens in mac. We now add a state in the asoc
so these can properly handle the packet as OOTB.
Approved by: re@freebsd.org(Ken Smith)
Diffstat (limited to 'sys/netinet/sctp_usrreq.c')
-rw-r--r-- | sys/netinet/sctp_usrreq.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/sctp_usrreq.c b/sys/netinet/sctp_usrreq.c index 240e96c..54b31b53 100644 --- a/sys/netinet/sctp_usrreq.c +++ b/sys/netinet/sctp_usrreq.c @@ -734,7 +734,8 @@ sctp_disconnect(struct socket *so) return (ENOTCONN); } SCTP_INP_RLOCK(inp); - if (inp->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) { + if ((inp->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) || + (inp->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL)) { if (SCTP_LIST_EMPTY(&inp->sctp_asoc_list)) { /* No connection */ SCTP_INP_RUNLOCK(inp); |