Home | History | Annotate | Download | only in net

Lines Matching refs:addrinfo

213 static int explore_fqdn(const struct addrinfo *, const char *,
214 const char *, struct addrinfo **);
215 static int explore_null(const struct addrinfo *,
216 const char *, struct addrinfo **);
217 static int explore_numeric(const struct addrinfo *, const char *,
218 const char *, struct addrinfo **, const char *);
219 static int explore_numeric_scope(const struct addrinfo *, const char *,
220 const char *, struct addrinfo **);
221 static int get_canonname(const struct addrinfo *,
222 struct addrinfo *, const char *);
223 static struct addrinfo *get_ai(const struct addrinfo *,
225 static int get_portmatch(const struct addrinfo *, const char *);
226 static int get_port(const struct addrinfo *, const char *, int);
232 static struct addrinfo *getanswer(const querybuf *, int, const char *, int,
233 const struct addrinfo *);
237 static struct addrinfo *_gethtent(FILE **, const char *,
238 const struct addrinfo *);
316 freeaddrinfo(struct addrinfo *ai)
318 struct addrinfo *next;
407 const struct addrinfo *hints, struct addrinfo **res)
488 struct addrinfo* ai = NULL;
489 struct addrinfo** nextres = res;
502 if (addrinfo_len < sizeof(struct addrinfo)) {
505 struct addrinfo* ai = calloc(1, addrinfo_len +
564 // Clean up partially-built addrinfo that we never ended up
589 const struct addrinfo *hints, struct addrinfo **res)
591 struct addrinfo sentinel;
592 struct addrinfo *cur;
594 struct addrinfo ai;
595 struct addrinfo ai0;
596 struct addrinfo *pai;
799 explore_fqdn(const struct addrinfo *pai, const char *hostname,
800 const char *servname, struct addrinfo **res)
802 struct addrinfo *result;
803 struct addrinfo *cur;
861 explore_null(const struct addrinfo *pai, const char *servname,
862 struct addrinfo **res)
866 struct addrinfo *cur;
867 struct addrinfo sentinel;
927 explore_numeric(const struct addrinfo *pai, const char *hostname,
928 const char *servname, struct addrinfo **res, const char *canonname)
931 struct addrinfo *cur;
932 struct addrinfo sentinel;
1014 explore_numeric_scope(const struct addrinfo *pai, const char *hostname,
1015 const char *servname, struct addrinfo **res)
1021 struct addrinfo *cur;
1082 get_canonname(const struct addrinfo *pai, struct addrinfo *ai, const char *str)
1097 static struct addrinfo *
1098 get_ai(const struct addrinfo *pai, const struct afd *afd, const char *addr)
1101 struct addrinfo *ai;
1107 ai = (struct addrinfo *)malloc(sizeof(struct addrinfo)
1112 memcpy(ai, pai, sizeof(struct addrinfo));
1131 get_portmatch(const struct addrinfo *ai, const char *servname)
1141 get_port(const struct addrinfo *ai, const char *servname, int matchonly)
1297 static struct addrinfo *
1299 const struct addrinfo *pai)
1301 struct addrinfo sentinel, *cur;
1302 struct addrinfo ai;
1489 struct addrinfo *ai;
1823 _rfc3484_sort(struct addrinfo *list_sentinel)
1825 struct addrinfo *cur;
1874 struct addrinfo *ai;
1877 const struct addrinfo *pai;
1878 struct addrinfo sentinel, *cur;
1883 pai = va_arg(ap, const struct addrinfo *);
2002 *((struct addrinfo **)rv) = sentinel.ai_next;
2026 static struct addrinfo *
2027 _gethtent(FILE **hostf, const char *name, const struct addrinfo *pai)
2031 struct addrinfo hints, *res0, *res;
2097 const struct addrinfo *pai;
2098 struct addrinfo sentinel, *cur;
2099 struct addrinfo *p;
2103 pai = va_arg(ap, struct addrinfo *);
2117 *((struct addrinfo **)rv) = sentinel.ai_next;