Home | History | Annotate | Download | only in net

Lines Matching refs:addrinfo

217 static int explore_fqdn(const struct addrinfo *, const char *,
218 const char *, struct addrinfo **, const char *iface, int mark);
219 static int explore_null(const struct addrinfo *,
220 const char *, struct addrinfo **);
221 static int explore_numeric(const struct addrinfo *, const char *,
222 const char *, struct addrinfo **, const char *);
223 static int explore_numeric_scope(const struct addrinfo *, const char *,
224 const char *, struct addrinfo **);
225 static int get_canonname(const struct addrinfo *,
226 struct addrinfo *, const char *);
227 static struct addrinfo *get_ai(const struct addrinfo *,
229 static int get_portmatch(const struct addrinfo *, const char *);
230 static int get_port(const struct addrinfo *, const char *, int);
236 static struct addrinfo *getanswer(const querybuf *, int, const char *, int,
237 const struct addrinfo *);
241 static struct addrinfo *_gethtent(FILE **, const char *,
242 const struct addrinfo *);
320 freeaddrinfo(struct addrinfo *ai)
322 struct addrinfo *next;
410 const struct addrinfo *hints, struct addrinfo **res, const char *iface)
479 struct addrinfo* ai = NULL;
480 struct addrinfo** nextres = res;
493 if (addrinfo_len < sizeof(struct addrinfo)) {
496 struct addrinfo* ai = calloc(1, addrinfo_len +
555 // Clean up partially-built addrinfo that we never ended up
579 const struct addrinfo *hints, struct addrinfo **res)
586 const struct addrinfo *hints, const char *iface, int mark, struct addrinfo **res)
588 struct addrinfo sentinel;
589 struct addrinfo *cur;
591 struct addrinfo ai;
592 struct addrinfo ai0;
593 struct addrinfo *pai;
797 explore_fqdn(const struct addrinfo *pai, const char *hostname,
798 const char *servname, struct addrinfo **res, const char *iface, int mark)
800 struct addrinfo *result;
801 struct addrinfo *cur;
859 explore_null(const struct addrinfo *pai, const char *servname,
860 struct addrinfo **res)
864 struct addrinfo *cur;
865 struct addrinfo sentinel;
925 explore_numeric(const struct addrinfo *pai, const char *hostname,
926 const char *servname, struct addrinfo **res, const char *canonname)
929 struct addrinfo *cur;
930 struct addrinfo sentinel;
1012 explore_numeric_scope(const struct addrinfo *pai, const char *hostname,
1013 const char *servname, struct addrinfo **res)
1019 struct addrinfo *cur;
1080 get_canonname(const struct addrinfo *pai, struct addrinfo *ai, const char *str)
1095 static struct addrinfo *
1096 get_ai(const struct addrinfo *pai, const struct afd *afd, const char *addr)
1099 struct addrinfo *ai;
1105 ai = (struct addrinfo *)malloc(sizeof(struct addrinfo)
1110 memcpy(ai, pai, sizeof(struct addrinfo));
1129 get_portmatch(const struct addrinfo *ai, const char *servname)
1139 get_port(const struct addrinfo *ai, const char *servname, int matchonly)
1295 static struct addrinfo *
1297 const struct addrinfo *pai)
1299 struct addrinfo sentinel, *cur;
1300 struct addrinfo ai;
1487 struct addrinfo *ai;
1821 _rfc6724_sort(struct addrinfo *list_sentinel)
1823 struct addrinfo *cur;
1887 struct addrinfo *ai;
1890 const struct addrinfo *pai;
1891 struct addrinfo sentinel, *cur;
1898 pai = va_arg(ap, const struct addrinfo *);
2024 *((struct addrinfo **)rv) = sentinel.ai_next;
2048 static struct addrinfo *
2049 _gethtent(FILE **hostf, const char *name, const struct addrinfo *pai)
2053 struct addrinfo hints, *res0, *res;
2119 const struct addrinfo *pai;
2120 struct addrinfo sentinel, *cur;
2121 struct addrinfo *p;
2125 pai = va_arg(ap, struct addrinfo *);
2139 *((struct addrinfo **)rv) = sentinel.ai_next;