Lines Matching refs:port
119 addrinfo *malloc_ai(int port, u_long addr, const struct addrinfo *hints)
132 ((struct sockaddr_in *)(ai)->ai_addr)->sin_port = port;
155 long int port;
158 port = 0;
162 port = strtol(servname, &cp, 10);
163 if (port > 0 && port <= 65535 && *cp == '\0')
164 port = htons(port);
166 port = sp->s_port;
168 port = 0;
175 *res = malloc_ai(port, addr, hints);
182 *res = malloc_ai(port, htonl(0x7f000001), hints);
189 *res = malloc_ai(port, in.s_addr, hints);
207 cur = malloc_ai(port, in->s_addr, hints);