Home | History | Annotate | Download | only in net

Lines Matching refs:afd

139 static const struct afd {
230 const struct afd *, const char *);
233 static const struct afd *find_afd(int);
274 #define GET_AI(ai, afd, addr) \
277 (ai) = get_ai(pai, (afd), (addr)); \
866 const struct afd *afd;
896 afd = find_afd(pai->ai_family);
897 if (afd == NULL)
901 GET_AI(cur->ai_next, afd, afd->a_addrany);
907 GET_AI(cur->ai_next, afd, afd->a_loopback);
931 const struct afd *afd;
952 afd = find_afd(pai->ai_family);
953 if (afd == NULL)
956 switch (afd->a_af) {
960 if (pai->ai_family == afd->a_af ||
962 GET_AI(cur->ai_next, afd, pton);
980 if (inet_pton(afd->a_af, hostname, pton) == 1) {
981 if (pai->ai_family == afd->a_af ||
983 GET_AI(cur->ai_next, afd, pton);
1021 const struct afd *afd;
1038 afd = find_afd(pai->ai_family);
1039 if (afd == NULL)
1042 if (!afd->a_scoped)
1099 get_ai(const struct addrinfo *pai, const struct afd *afd, const char *addr)
1105 assert(afd != NULL);
1109 + (afd->a_socklen));
1115 memset(ai->ai_addr, 0, (size_t)afd->a_socklen);
1118 ai->ai_addr->sa_len = afd->a_socklen;
1121 ai->ai_addrlen = afd->a_socklen;
1125 ai->ai_addr->sa_family = ai->ai_family = afd->a_af;
1127 memcpy(p + afd->a_off, addr, (size_t)afd->a_addrlen);
1228 static const struct afd *
1231 const struct afd *afd;
1235 for (afd = afdl; afd->a_af; afd++) {
1236 if (afd->a_af == af)
1237 return afd;
1315 const struct afd *afd;
1472 afd = find_afd(ai.ai_family);
1473 if (afd == NULL) {
1477 cur->ai_next = get_ai(&ai, afd, (const char *)cp);