Lines Matching refs:ai
214 struct addrinfo ai, *res, *e; in inet_listen_saddr() local
229 memset(&ai,0, sizeof(ai)); in inet_listen_saddr()
230 ai.ai_flags = AI_PASSIVE; in inet_listen_saddr()
232 ai.ai_flags |= AI_NUMERICHOST | AI_NUMERICSERV; in inet_listen_saddr()
234 ai.ai_socktype = SOCK_STREAM; in inet_listen_saddr()
235 ai.ai_family = inet_ai_family_from_address(saddr, errp); in inet_listen_saddr()
269 strlen(port) ? port : NULL, &ai, &res); in inet_listen_saddr()
394 struct addrinfo ai, *res; in inet_parse_connect_saddr() local
398 memset(&ai, 0, sizeof(ai)); in inet_parse_connect_saddr()
400 ai.ai_flags = AI_CANONNAME | AI_ADDRCONFIG; in inet_parse_connect_saddr()
402 ai.ai_flags |= AI_V4MAPPED; in inet_parse_connect_saddr()
404 ai.ai_socktype = SOCK_STREAM; in inet_parse_connect_saddr()
405 ai.ai_family = inet_ai_family_from_address(saddr, errp); in inet_parse_connect_saddr()
416 rc = getaddrinfo(saddr->host, saddr->port, &ai, &res); in inet_parse_connect_saddr()
424 (ai.ai_flags & AI_V4MAPPED)) { in inet_parse_connect_saddr()
426 ai.ai_flags &= ~AI_V4MAPPED; in inet_parse_connect_saddr()
427 rc = getaddrinfo(saddr->host, saddr->port, &ai, &res); in inet_parse_connect_saddr()
499 struct addrinfo ai, *peer = NULL, *local = NULL; in inet_dgram_saddr() local
505 memset(&ai,0, sizeof(ai)); in inet_dgram_saddr()
506 ai.ai_flags = AI_CANONNAME | AI_V4MAPPED | AI_ADDRCONFIG; in inet_dgram_saddr()
507 ai.ai_socktype = SOCK_DGRAM; in inet_dgram_saddr()
508 ai.ai_family = inet_ai_family_from_address(sraddr, errp); in inet_dgram_saddr()
523 if ((rc = getaddrinfo(addr, port, &ai, &peer)) != 0) { in inet_dgram_saddr()
530 memset(&ai,0, sizeof(ai)); in inet_dgram_saddr()
531 ai.ai_flags = AI_PASSIVE; in inet_dgram_saddr()
532 ai.ai_family = peer->ai_family; in inet_dgram_saddr()
533 ai.ai_socktype = SOCK_DGRAM; in inet_dgram_saddr()
549 if ((rc = getaddrinfo(addr, port, &ai, &local)) != 0) { in inet_dgram_saddr()