Lines Matching refs:addrinfo
68 /* AI_MASK: all valid flags for addrinfo */
84 static int get_addr(int family, const char *hostname, struct addrinfo *aip,
85 struct addrinfo *cur, ushort_t port, int version);
120 * hints - optional argument that points to an addrinfo structure
136 * field of the first addrinfo structure in the linked
158 * or more addrinfo structures is returned through this
159 * argument. The caller can process each addrinfo structures
161 * NULL pointer is encountered. In each returned addrinfo
164 * socket() function. In each addrinfo structure the ai_addr
186 * allocated: the addrinfo structures, and the socket address
188 * addrinfo structures.
194 const struct addrinfo *hints, struct addrinfo **res, int version)
196 struct addrinfo *cur;
197 struct addrinfo *aip;
198 struct addrinfo ai;
450 struct addrinfo *nai;
456 /* create IPv6 addrinfo */
457 nai = malloc(sizeof (struct addrinfo));
494 /* create IPv4 addrinfo */
495 nai = malloc(sizeof (struct addrinfo));
548 const struct addrinfo *hints, struct addrinfo **res)
555 const struct addrinfo *hints, struct addrinfo **res)
561 get_addr(int family, const char *hostname, struct addrinfo *aip, struct
562 addrinfo *cur, ushort_t port, int version)
567 struct addrinfo *nai;
639 /* Determine if an IPv6 addrinfo structure should be created */
657 /* create IPv6 addrinfo */
658 nai = malloc(sizeof (struct addrinfo));
701 /* create IPv4 addrinfo */
702 nai = malloc(sizeof (struct addrinfo));
798 freeaddrinfo(struct addrinfo *ai)
800 struct addrinfo *next;