Home | History | Annotate | Download | only in net

Lines Matching refs:afd

136 static const struct afd {
227 const struct afd *, const char *);
230 static const struct afd *find_afd(int);
270 #define GET_AI(ai, afd, addr) \
273 (ai) = get_ai(pai, (afd), (addr)); \
862 const struct afd *afd;
892 afd = find_afd(pai->ai_family);
893 if (afd == NULL)
897 GET_AI(cur->ai_next, afd, afd->a_addrany);
903 GET_AI(cur->ai_next, afd, afd->a_loopback);
927 const struct afd *afd;
948 afd = find_afd(pai->ai_family);
949 if (afd == NULL)
952 switch (afd->a_af) {
956 if (pai->ai_family == afd->a_af ||
958 GET_AI(cur->ai_next, afd, pton);
976 if (inet_pton(afd->a_af, hostname, pton) == 1) {
977 if (pai->ai_family == afd->a_af ||
979 GET_AI(cur->ai_next, afd, pton);
1017 const struct afd *afd;
1034 afd = find_afd(pai->ai_family);
1035 if (afd == NULL)
1038 if (!afd->a_scoped)
1095 get_ai(const struct addrinfo *pai, const struct afd *afd, const char *addr)
1101 assert(afd != NULL);
1105 + (afd->a_socklen));
1111 memset(ai->ai_addr, 0, (size_t)afd->a_socklen);
1114 ai->ai_addr->sa_len = afd->a_socklen;
1117 ai->ai_addrlen = afd->a_socklen;
1121 ai->ai_addr->sa_family = ai->ai_family = afd->a_af;
1123 memcpy(p + afd->a_off, addr, (size_t)afd->a_addrlen);
1224 static const struct afd *
1227 const struct afd *afd;
1231 for (afd = afdl; afd->a_af; afd++) {
1232 if (afd->a_af == af)
1233 return afd;
1300 const struct afd *afd;
1454 afd = find_afd(ai.ai_family);
1455 if (afd == NULL) {
1459 cur->ai_next = get_ai(&ai, afd, (const char *)cp);