svn commit: r238454 - head/sys/netinet

Michael Tuexen tuexen at fh-muenster.de
Sat Jul 14 20:10:07 UTC 2012


On Jul 14, 2012, at 9:44 PM, Michael Tuexen wrote:

> Author: tuexen
> Date: Sat Jul 14 19:44:39 2012
> New Revision: 238454
> URL: http://svn.freebsd.org/changeset/base/238454
> 
> Log:
>  Use case for selecting the address family (as in other places).
Wrong commit message. It should have been:
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).
> 
>  MFC after: 3 days
> 
> Modified:
>  head/sys/netinet/sctp_input.c
> 
> Modified: head/sys/netinet/sctp_input.c
> ==============================================================================
> --- head/sys/netinet/sctp_input.c	Sat Jul 14 19:39:53 2012	(r238453)
> +++ head/sys/netinet/sctp_input.c	Sat Jul 14 19:44:39 2012	(r238454)
> @@ -2874,14 +2874,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);
> }
> 



More information about the svn-src-all mailing list