Date: Fri, 9 Jan 2009 17:16:18 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r186959 - head/sys/netinet Message-ID: <200901091716.n09HGIYN062768@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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. + */ 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?200901091716.n09HGIYN062768>