svn commit: r243564 - head/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Mon Nov 26 16:43:33 UTC 2012


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


More information about the svn-src-all mailing list