339: return (EADDRNOTAVAIL);
340: if (inp->inp_lport || !in_nullhost(inp->inp_laddr))
341: return (EINVAL);
361: reuseport = SO_REUSEADDR|SO_REUSEPORT;
362: } else if (!in_nullhost(sin->sin_addr)) {
363: sin->sin_port = 0; /* yech... */
408: if (t &&
409: (!in_nullhost(sin->sin_addr) ||
410: !in_nullhost(t->inp_laddr) ||
411: (t->inp_socket->so_options & SO_REUSEPORT) == 0)
465: }
466: if (!in_nullhost(inp->inp_laddr))
467: inp->inp_laddr.s_addr = INADDR_ANY;
514:
515: if (in_nullhost(sin->sin_addr)) {
516: sin->sin_addr =
539: */
540: if (in_nullhost(inp->inp_laddr)) {
541: int xerror;
553: if (in_pcblookup_connect(inp->inp_table, sin->sin_addr, sin->sin_port,
554: !in_nullhost(inp->inp_laddr) ? inp->inp_laddr : ifaddr->sin_addr,
555: inp->inp_lport) != 0)
556: return (EADDRINUSE);
557: if (in_nullhost(inp->inp_laddr)) {
558: if (inp->inp_lport == 0) {
674:
675: if (in_nullhost(faddr) || notify == 0)
676: return (0);
700:
701: if (in_nullhost(faddr) || notify == 0)
702: return;
841: wildcard = 0;
842: if (!in_nullhost(inp->inp_faddr))
843: wildcard++;
844: if (in_nullhost(inp->inp_laddr)) {
845: if (!in_nullhost(laddr))
846: wildcard++;
847: } else {
848: if (in_nullhost(laddr))
849: wildcard++;