Comment some potentially confusing logic.

Nitpicking by: mlaier

MFC after:	2 weeks
This commit is contained in:
Adrian Chadd 2009-01-09 17:16:18 +00:00
parent efad698c19
commit 4209e01ad7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=186959

View File

@ -347,6 +347,11 @@ in_pcbbind_setup(struct inpcb *inp, struct sockaddr *nam, in_addr_t *laddrp,
} 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) &&