Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Nov 2012 16:43:33 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r243564 - head/sys/netinet
Message-ID:  <201211261643.qAQGhXnV031694@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Mon Nov 26 16:43:32 2012
New Revision: 243564
URL: http://svnweb.freebsd.org/changeset/base/243564

Log:
  Find the endpoint for an incoming packet also if the endpoint
  comes from sctp_peeloff().
  
  MFC after: 3 days

Modified:
  head/sys/netinet/sctp_pcb.c

Modified: head/sys/netinet/sctp_pcb.c
==============================================================================
--- head/sys/netinet/sctp_pcb.c	Mon Nov 26 16:19:27 2012	(r243563)
+++ head/sys/netinet/sctp_pcb.c	Mon Nov 26 16:43:32 2012	(r243564)
@@ -1226,7 +1226,8 @@ sctp_findassociation_ep_addr(struct sctp
 		SCTP_TCB_UNLOCK(locked_tcb);
 	}
 	SCTP_INP_INFO_RLOCK();
-	if (inp->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) {
+	if ((inp->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) ||
+	    (inp->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL)) {
 		/*-
 		 * Now either this guy is our listener or it's the
 		 * connector. If it is the one that issued the connect, then



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211261643.qAQGhXnV031694>