Lines Matching refs:port
171 #define GET_AI(ai, gai_afd, addr, port) {\
181 ((struct sockinet *)(ai)->ai_addr)->si_port = port;\
186 #define GET_AI(ai, gai_afd, addr, port) {\
196 ((struct sockinet *)(ai)->ai_addr)->si_port = port;\
249 u_short port;
277 port = GAI_ANY;
336 * service port
345 port = htons((u_short)atoi(servname));
367 port = sp->s_port;
396 GET_AI(cur->ai_next, gai_afd, gai_afd->a_addrany, port);
402 port);
446 GET_AI(top, &gai_afdl[i], pton, port);
458 get_name(pton, &gai_afdl[i], &top, pton, pai, port);
469 error = get_addr(hostname, pai->ai_family, &top, pai, port);
495 u_short port = port0 & 0xffff;
509 GET_AI(cur, gai_afd, hp->h_addr_list[0], port);
512 GET_AI(cur, gai_afd, numaddr, port);
540 u_short port = port0 & 0xffff;
612 GET_AI(cur->ai_next, &gai_afdl[N_INET6], ap, port);
619 GET_AI(cur->ai_next, gai_afd, ap, port);