Author: tuexen
Date: Tue Jul 17 11:18:39 2012
New Revision: 238548
URL: http://svn.freebsd.org/changeset/base/238548

Log:
  MFC r238454:
  
  Bugfix: Send up a COMM UP notification for active 1-to-1 style sockets
        also in the case where the assoc comes up due to a remotely
        started handshake (collision case).
  Approved by: re@

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

Modified: stable/9/sys/netinet/sctp_input.c
==============================================================================
--- stable/9/sys/netinet/sctp_input.c   Tue Jul 17 09:34:52 2012        
(r238547)
+++ stable/9/sys/netinet/sctp_input.c   Tue Jul 17 11:18:39 2012        
(r238548)
@@ -2912,14 +2912,12 @@ sctp_handle_cookie_echo(struct mbuf *m, 
                        return (m);
                }
        }
-       if ((*inp_p)->sctp_flags & SCTP_PCB_FLAGS_UDPTYPE) {
-               if (notification) {
-                       sctp_ulp_notify(notification, *stcb, 0, NULL, 
SCTP_SO_NOT_LOCKED);
-               }
-               if (send_int_conf) {
-                       sctp_ulp_notify(SCTP_NOTIFY_INTERFACE_CONFIRMED,
-                           (*stcb), 0, (void *)netl, SCTP_SO_NOT_LOCKED);
-               }
+       if (notification) {
+               sctp_ulp_notify(notification, *stcb, 0, NULL, 
SCTP_SO_NOT_LOCKED);
+       }
+       if (send_int_conf) {
+               sctp_ulp_notify(SCTP_NOTIFY_INTERFACE_CONFIRMED,
+                   (*stcb), 0, (void *)netl, SCTP_SO_NOT_LOCKED);
        }
        return (m);
 }
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to