Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 Jan 2009 09:47:26 -0800
From:      Julian Elischer <julian@elischer.org>
To:        Adrian Chadd <adrian@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r186959 - head/sys/netinet
Message-ID:  <49678DAE.5000903@elischer.org>
In-Reply-To: <200901091716.n09HGIYN062768@svn.freebsd.org>
References:  <200901091716.n09HGIYN062768@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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) &&




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49678DAE.5000903>