svn commit: r186959 - head/sys/netinet

Julian Elischer julian at elischer.org
Fri Jan 9 09:56:54 PST 2009


Adrian Chadd wrote:
> Author: adrian
> Date: Fri Jan  9 17:16:18 2009
> New Revision: 186959
> URL: http://svn.freebsd.org/changeset/base/186959
> 
> Log:
>   Comment some potentially confusing logic.
>   
>   Nitpicking by: mlaier
>   
>   MFC after:	2 weeks
> 
> Modified:
>   head/sys/netinet/in_pcb.c
> 
> Modified: head/sys/netinet/in_pcb.c
> ==============================================================================
> --- head/sys/netinet/in_pcb.c	Fri Jan  9 16:37:29 2009	(r186958)
> +++ head/sys/netinet/in_pcb.c	Fri Jan  9 17:16:18 2009	(r186959)
> @@ -347,6 +347,11 @@ in_pcbbind_setup(struct inpcb *inp, stru
>  		} else if (sin->sin_addr.s_addr != INADDR_ANY) {
>  			sin->sin_port = 0;		/* yech... */
>  			bzero(&sin->sin_zero, sizeof(sin->sin_zero));
> +			/*
> +			 * Is the address a local IP address? 
> +			 * If INP_NONLOCALOK is set, then the socket may be bound
> +			 * to any local endpoint address.
                                   ^ NON



or "any address, local or not"

> +			 */
>  			if (
>  #if defined(IP_NONLOCALBIND)
>  			    ((inp->inp_flags & INP_NONLOCALOK) == 0) &&



More information about the svn-src-all mailing list