summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_input.c
diff options
context:
space:
mode:
authorrrs <rrs@FreeBSD.org>2007-08-06 15:46:46 +0000
committerrrs <rrs@FreeBSD.org>2007-08-06 15:46:46 +0000
commit50d4dc714d27bf6c05cca0ecd6de2771fbc27e75 (patch)
treec921bd8428184a6766eefb361eecbb050ab5d3ff /sys/netinet/sctp_input.c
parent23574c86734ab5cb088584d30345e698cbbeaef2 (diff)
downloadFreeBSD-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_input.c')
-rw-r--r--sys/netinet/sctp_input.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/netinet/sctp_input.c b/sys/netinet/sctp_input.c
index b0ca7f5..5a278c1 100644
--- a/sys/netinet/sctp_input.c
+++ b/sys/netinet/sctp_input.c
@@ -4514,6 +4514,18 @@ sctp_common_input_processing(struct mbuf **mm, int iphlen, int offset,
/* always clear this before beginning a packet */
stcb->asoc.authenticated = 0;
stcb->asoc.seen_a_sack_this_pkt = 0;
+ if (stcb->asoc.state & SCTP_STATE_WAS_ABORTED) {
+ /*-
+ * If we hit here, we had a ref count
+ * up when the assoc was aborted and the
+ * timer is clearing out the assoc, we should
+ * NOT respond to any packet.. its OOTB.
+ */
+ SCTP_TCB_UNLOCK(stcb);
+ sctp_handle_ootb(m, iphlen, offset, sh, inp, NULL,
+ vrf_id);
+ goto out_now;
+ }
}
if (IS_SCTP_CONTROL(ch)) {
/* process the control portion of the SCTP packet */
OpenPOWER on IntegriCloud