Home | History | Annotate | Download | only in net

Lines Matching full:addrinfo

220 static int explore_fqdn(const struct addrinfo *, const char *,
221 const char *, struct addrinfo **, const struct android_net_context *);
222 static int explore_null(const struct addrinfo *,
223 const char *, struct addrinfo **);
224 static int explore_numeric(const struct addrinfo *, const char *,
225 const char *, struct addrinfo **, const char *);
226 static int explore_numeric_scope(const struct addrinfo *, const char *,
227 const char *, struct addrinfo **);
228 static int get_canonname(const struct addrinfo *,
229 struct addrinfo *, const char *);
230 static struct addrinfo *get_ai(const struct addrinfo *,
232 static int get_portmatch(const struct addrinfo *, const char *);
233 static int get_port(const struct addrinfo *, const char *, int);
239 static struct addrinfo *getanswer(const querybuf *, int, const char *, int,
240 const struct addrinfo *);
244 static struct addrinfo *_gethtent(FILE **, const char *,
245 const struct addrinfo *);
324 freeaddrinfo(struct addrinfo *ai)
326 struct addrinfo *next;
406 const struct addrinfo *hints, struct addrinfo **res, unsigned netid)
460 struct addrinfo* ai = NULL;
461 struct addrinfo** nextres = res;
472 struct addrinfo* ai = calloc(1, sizeof(struct addrinfo) + sizeof(struct sockaddr_storage));
478 // struct addrinfo {
486 // struct addrinfo *ai_next; /* next structure in linked list */
537 // Clean up partially-built addrinfo that we never ended up
561 const struct addrinfo *hints, struct addrinfo **res)
568 const struct addrinfo *hints, unsigned netid, unsigned mark, struct addrinfo **res)
582 const struct addrinfo *hints, const struct android_net_context *netcontext,
583 struct addrinfo **res)
585 struct addrinfo sentinel;
586 struct addrinfo *cur;
588 struct addrinfo ai;
589 struct addrinfo ai0;
590 struct addrinfo *pai;
794 explore_fqdn(const struct addrinfo *pai, const char *hostname,
795 const char *servname, struct addrinfo **res,
798 struct addrinfo *result;
799 struct addrinfo *cur;
857 explore_null(const struct addrinfo *pai, const char *servname,
858 struct addrinfo **res)
862 struct addrinfo *cur;
863 struct addrinfo sentinel;
923 explore_numeric(const struct addrinfo *pai, const char *hostname,
924 const char *servname, struct addrinfo **res, const char *canonname)
927 struct addrinfo *cur;
928 struct addrinfo sentinel;
1010 explore_numeric_scope(const struct addrinfo *pai, const char *hostname,
1011 const char *servname, struct addrinfo **res)
1017 struct addrinfo *cur;
1078 get_canonname(const struct addrinfo *pai, struct addrinfo *ai, const char *str)
1093 static struct addrinfo *
1094 get_ai(const struct addrinfo *pai, const struct afd *afd, const char *addr)
1097 struct addrinfo *ai;
1103 ai = (struct addrinfo *)malloc(sizeof(struct addrinfo)
1108 memcpy(ai, pai, sizeof(struct addrinfo));
1127 get_portmatch(const struct addrinfo *ai, const char *servname)
1137 get_port(const struct addrinfo *ai, const char *servname, int matchonly)
1293 static struct addrinfo *
1295 const struct addrinfo *pai)
1297 struct addrinfo sentinel, *cur;
1298 struct addrinfo ai;
1485 struct addrinfo *ai;
1822 _rfc6724_sort(struct addrinfo *list_sentinel, unsigned mark, uid_t uid)
1824 struct addrinfo *cur;
1873 struct addrinfo *ai;
1876 const struct addrinfo *pai;
1877 struct addrinfo sentinel, *cur;
1883 pai = va_arg(ap, const struct addrinfo *);
2003 *((struct addrinfo **)rv) = sentinel.ai_next;
2027 static struct addrinfo *
2028 _gethtent(FILE **hostf, const char *name, const struct addrinfo *pai)
2032 struct addrinfo hints, *res0, *res;
2098 const struct addrinfo *pai;
2099 struct addrinfo sentinel, *cur;
2100 struct addrinfo *p;
2104 pai = va_arg(ap, struct addrinfo *);
2118 *((struct addrinfo **)rv) = sentinel.ai_next;