Author: tuexen
Date: Sun Jul  7 13:18:19 2013
New Revision: 252949
URL: http://svnweb.freebsd.org/changeset/base/252949

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

Modified:
  stable/9/sys/netinet/sctp_pcb.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/netinet/sctp_pcb.c
==============================================================================
--- stable/9/sys/netinet/sctp_pcb.c     Sun Jul  7 13:15:56 2013        
(r252948)
+++ stable/9/sys/netinet/sctp_pcb.c     Sun Jul  7 13:18:19 2013        
(r252949)
@@ -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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "[email protected]"

Reply via email to