Lines Matching defs:port
124 addrinfo *malloc_ai(int port, u_long addr, const struct addrinfo *hints)
139 ((struct sockaddr_in *)(ai)->ai_addr)->sin_port = port;
162 long int port;
165 port = 0;
172 port = strtol(servname, &cp, 10);
173 if (port > 0 && port <= 65535 && *cp == '\0')
174 port = htons(port);
176 port = sp->s_port;
178 port = 0;
185 *res = malloc_ai(port, addr, hints);
192 *res = malloc_ai(port, htonl(0x7f000001), hints);
199 *res = malloc_ai(port, in.s_addr, hints);
217 cur = malloc_ai(port, in->s_addr, hints);