Lines Matching refs:addrinfo
86 #include "addrinfo.h"
175 static int explore_fqdn (const struct addrinfo *, const char *,
176 const char *, struct addrinfo **);
177 static int explore_null (const struct addrinfo *, const char *,
178 const char *, struct addrinfo **);
179 static int explore_numeric (const struct addrinfo *, const char *,
180 const char *, struct addrinfo **);
181 static int explore_numeric_scope (const struct addrinfo *, const char *,
182 const char *, struct addrinfo **);
183 static int get_name (const char *, const struct afd *, struct addrinfo **,
184 char *, const struct addrinfo *, const char *);
185 static int get_canonname (const struct addrinfo *,
186 struct addrinfo *, const char *);
187 static struct addrinfo *get_ai (const struct addrinfo *,
189 static int get_portmatch (const struct addrinfo *, const char *);
190 static int get_port (struct addrinfo *, const char *, int);
262 struct addrinfo *ai;
264 struct addrinfo *next;
291 const struct addrinfo *hints;
292 struct addrinfo **res;
294 struct addrinfo sentinel;
295 struct addrinfo *cur;
297 struct addrinfo ai;
298 struct addrinfo ai0;
299 struct addrinfo *pai;
509 const struct addrinfo *pai;
512 struct addrinfo **res;
519 struct addrinfo sentinel, *cur;
683 const struct addrinfo *pai;
686 struct addrinfo **res;
690 struct addrinfo *cur;
691 struct addrinfo sentinel;
746 const struct addrinfo *pai;
749 struct addrinfo **res;
752 struct addrinfo *cur;
753 struct addrinfo sentinel;
835 const struct addrinfo *pai;
838 struct addrinfo **res;
844 struct addrinfo *cur;
908 struct addrinfo **res;
910 const struct addrinfo *pai;
914 struct addrinfo *cur = NULL;
975 const struct addrinfo *pai;
976 struct addrinfo *ai;
988 static struct addrinfo *
990 const struct addrinfo *pai;
995 struct addrinfo *ai;
997 ai = (struct addrinfo *)malloc(sizeof(struct addrinfo)
1002 memcpy(ai, pai, sizeof(struct addrinfo));
1017 const struct addrinfo *ai;
1022 return get_port((struct addrinfo *)ai, servname, 1);
1027 struct addrinfo *ai;