Lines Matching refs:addrinfo
219 static int explore_fqdn(const struct addrinfo *, const char *,
220 const char *, struct addrinfo **, const struct android_net_context *);
221 static int explore_null(const struct addrinfo *,
222 const char *, struct addrinfo **);
223 static int explore_numeric(const struct addrinfo *, const char *,
224 const char *, struct addrinfo **, const char *);
225 static int explore_numeric_scope(const struct addrinfo *, const char *,
226 const char *, struct addrinfo **);
227 static int get_canonname(const struct addrinfo *,
228 struct addrinfo *, const char *);
229 static struct addrinfo *get_ai(const struct addrinfo *,
231 static int get_portmatch(const struct addrinfo *, const char *);
232 static int get_port(const struct addrinfo *, const char *, int);
238 static struct addrinfo *getanswer(const querybuf *, int, const char *, int,
239 const struct addrinfo *);
243 static struct addrinfo *_gethtent(FILE **, const char *,
244 const struct addrinfo *);
325 freeaddrinfo(struct addrinfo *ai) in freeaddrinfo()
327 struct addrinfo *next; in freeaddrinfo()
408 const struct addrinfo *hints, struct addrinfo **res, unsigned netid) in android_getaddrinfo_proxy()
461 struct addrinfo* ai = NULL; in android_getaddrinfo_proxy()
462 struct addrinfo** nextres = res; in android_getaddrinfo_proxy()
473 ai = calloc(1, sizeof(struct addrinfo) + sizeof(struct sockaddr_storage)); in android_getaddrinfo_proxy()
564 const struct addrinfo *hints, struct addrinfo **res) in getaddrinfo()
572 const struct addrinfo *hints, unsigned netid, unsigned mark, struct addrinfo **res) in android_getaddrinfofornet()
587 const struct addrinfo *hints, const struct android_net_context *netcontext, in android_getaddrinfofornetcontext()
588 struct addrinfo **res) in android_getaddrinfofornetcontext()
590 struct addrinfo sentinel; in android_getaddrinfofornetcontext()
591 struct addrinfo *cur; in android_getaddrinfofornetcontext()
593 struct addrinfo ai; in android_getaddrinfofornetcontext()
594 struct addrinfo ai0; in android_getaddrinfofornetcontext()
595 struct addrinfo *pai; in android_getaddrinfofornetcontext()
799 explore_fqdn(const struct addrinfo *pai, const char *hostname, in explore_fqdn()
800 const char *servname, struct addrinfo **res, in explore_fqdn()
803 struct addrinfo *result; in explore_fqdn()
804 struct addrinfo *cur; in explore_fqdn()
862 explore_null(const struct addrinfo *pai, const char *servname, in explore_null()
863 struct addrinfo **res) in explore_null()
867 struct addrinfo *cur; in explore_null()
868 struct addrinfo sentinel; in explore_null()
928 explore_numeric(const struct addrinfo *pai, const char *hostname, in explore_numeric()
929 const char *servname, struct addrinfo **res, const char *canonname) in explore_numeric()
932 struct addrinfo *cur; in explore_numeric()
933 struct addrinfo sentinel; in explore_numeric()
1015 explore_numeric_scope(const struct addrinfo *pai, const char *hostname, in explore_numeric_scope()
1016 const char *servname, struct addrinfo **res) in explore_numeric_scope()
1022 struct addrinfo *cur; in explore_numeric_scope()
1083 get_canonname(const struct addrinfo *pai, struct addrinfo *ai, const char *str) in get_canonname()
1098 static struct addrinfo *
1099 get_ai(const struct addrinfo *pai, const struct afd *afd, const char *addr) in get_ai()
1102 struct addrinfo *ai; in get_ai()
1108 ai = (struct addrinfo *)malloc(sizeof(struct addrinfo) in get_ai()
1113 memcpy(ai, pai, sizeof(struct addrinfo)); in get_ai()
1132 get_portmatch(const struct addrinfo *ai, const char *servname) in get_portmatch()
1142 get_port(const struct addrinfo *ai, const char *servname, int matchonly) in get_port()
1309 static struct addrinfo *
1311 const struct addrinfo *pai) in getanswer()
1313 struct addrinfo sentinel, *cur; in getanswer()
1314 struct addrinfo ai; in getanswer()
1504 struct addrinfo *ai;
1845 _rfc6724_sort(struct addrinfo *list_sentinel, unsigned mark, uid_t uid) in _rfc6724_sort()
1847 struct addrinfo *cur; in _rfc6724_sort()
1896 struct addrinfo *ai; in _dns_getaddrinfo()
1899 const struct addrinfo *pai; in _dns_getaddrinfo()
1900 struct addrinfo sentinel, *cur; in _dns_getaddrinfo()
1906 pai = va_arg(ap, const struct addrinfo *); in _dns_getaddrinfo()
2025 *((struct addrinfo **)rv) = sentinel.ai_next; in _dns_getaddrinfo()
2049 static struct addrinfo *
2050 _gethtent(FILE **hostf, const char *name, const struct addrinfo *pai) in _gethtent()
2054 struct addrinfo hints, *res0, *res; in _gethtent()
2120 const struct addrinfo *pai; in _files_getaddrinfo()
2121 struct addrinfo sentinel, *cur; in _files_getaddrinfo()
2122 struct addrinfo *p; in _files_getaddrinfo()
2126 pai = va_arg(ap, struct addrinfo *); in _files_getaddrinfo()
2140 *((struct addrinfo **)rv) = sentinel.ai_next; in _files_getaddrinfo()