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 **, unsigned netid, unsigned mark);
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 *);
323 freeaddrinfo(struct addrinfo *ai)
325 struct addrinfo *next;
415 const struct addrinfo *hints, struct addrinfo **res, unsigned netid)
486 struct addrinfo* ai = NULL;
487 struct addrinfo** nextres = res;
500 if (addrinfo_len < sizeof(struct addrinfo)) {
503 struct addrinfo* ai = calloc(1, addrinfo_len +
562 // Clean up partially-built addrinfo that we never ended up
586 const struct addrinfo *hints, struct addrinfo **res)
593 const struct addrinfo *hints, unsigned netid, unsigned mark, struct addrinfo **res)
595 struct addrinfo sentinel;
596 struct addrinfo *cur;
598 struct addrinfo ai;
599 struct addrinfo ai0;
600 struct addrinfo *pai;
804 explore_fqdn(const struct addrinfo *pai, const char *hostname,
805 const char *servname, struct addrinfo **res, unsigned netid, unsigned mark)
807 struct addrinfo *result;
808 struct addrinfo *cur;
866 explore_null(const struct addrinfo *pai, const char *servname,
867 struct addrinfo **res)
871 struct addrinfo *cur;
872 struct addrinfo sentinel;
932 explore_numeric(const struct addrinfo *pai, const char *hostname,
933 const char *servname, struct addrinfo **res, const char *canonname)
936 struct addrinfo *cur;
937 struct addrinfo sentinel;
1019 explore_numeric_scope(const struct addrinfo *pai, const char *hostname,
1020 const char *servname, struct addrinfo **res)
1026 struct addrinfo *cur;
1087 get_canonname(const struct addrinfo *pai, struct addrinfo *ai, const char *str)
1102 static struct addrinfo *
1103 get_ai(const struct addrinfo *pai, const struct afd *afd, const char *addr)
1106 struct addrinfo *ai;
1112 ai = (struct addrinfo *)malloc(sizeof(struct addrinfo)
1117 memcpy(ai, pai, sizeof(struct addrinfo));
1136 get_portmatch(const struct addrinfo *ai, const char *servname)
1146 get_port(const struct addrinfo *ai, const char *servname, int matchonly)
1302 static struct addrinfo *
1304 const struct addrinfo *pai)
1306 struct addrinfo sentinel, *cur;
1307 struct addrinfo ai;
1494 struct addrinfo *ai;
1829 _rfc6724_sort(struct addrinfo *list_sentinel, unsigned mark)
1831 struct addrinfo *cur;
1880 struct addrinfo *ai;
1883 const struct addrinfo *pai;
1884 struct addrinfo sentinel, *cur;
1890 pai = va_arg(ap, const struct addrinfo *);
2011 *((struct addrinfo **)rv) = sentinel.ai_next;
2035 static struct addrinfo *
2036 _gethtent(FILE **hostf, const char *name, const struct addrinfo *pai)
2040 struct addrinfo hints, *res0, *res;
2106 const struct addrinfo *pai;
2107 struct addrinfo sentinel, *cur;
2108 struct addrinfo *p;
2112 pai = va_arg(ap, struct addrinfo *);
2126 *((struct addrinfo **)rv) = sentinel.ai_next;