Lines Matching refs:port
121 addrinfo *malloc_ai(int port, u_long addr, const struct addrinfo *hints)
136 ((struct sockaddr_in *)(ai)->ai_addr)->sin_port = port;
159 long int port;
162 port = 0;
166 port = strtol(servname, &cp, 10);
167 if (port > 0 && port <= 65535 && *cp == '\0')
168 port = htons(port);
170 port = sp->s_port;
172 port = 0;
179 *res = malloc_ai(port, addr, hints);
186 *res = malloc_ai(port, htonl(0x7f000001), hints);
193 *res = malloc_ai(port, in.s_addr, hints);
211 cur = malloc_ai(port, in->s_addr, hints);