Home | History | Annotate | Download | only in BsdSocketLib

Lines Matching refs:afd

128 static const struct afd {

219 const struct afd *, const char *);
224 static const struct afd *find_afd(int);
269 #define GET_AI(ai, afd, addr) \
272 (ai) = get_ai(pai, (afd), (addr)); \
630 const struct afd *afd;
660 afd = find_afd(pai->ai_family);
661 if (afd == NULL)
665 GET_AI(cur->ai_next, afd, afd->a_addrany);
671 GET_AI(cur->ai_next, afd, afd->a_loopback);
696 const struct afd *afd;
717 afd = find_afd(pai->ai_family);
718 if (afd == NULL)
721 switch (afd->a_af) {
725 if (pai->ai_family == afd->a_af ||
727 GET_AI(cur->ai_next, afd, pton);
745 if (inet_pton(afd->a_af, hostname, pton) == 1) {
746 if (pai->ai_family == afd->a_af ||
748 GET_AI(cur->ai_next, afd, pton);
786 const struct afd *afd;
803 afd = find_afd(pai->ai_family);
804 if (afd == NULL)
807 if (!afd->a_scoped)
866 get_ai(const struct addrinfo *pai, const struct afd *afd, const char *addr)
872 _DIAGASSERT(afd != NULL);
876 + (afd->a_socklen));
882 memset(ai->ai_addr, 0, (size_t)afd->a_socklen);
883 ai->ai_addr->sa_len = (uint8_t)afd->a_socklen;
884 ai->ai_addrlen = afd->a_socklen;
885 ai->ai_family = afd->a_af;
888 memcpy(p + afd->a_off, addr, (size_t)afd->a_addrlen);
995 static const struct afd *
998 const struct afd *afd;
1002 for (afd = afdl; afd->a_af; afd++) {
1003 if (afd->a_af == af)
1004 return afd;
1074 const struct afd *afd;
1235 afd = find_afd(ai.ai_family);
1236 if (afd == NULL) {
1240 cur->ai_next = get_ai(&ai, afd, (const char *)cp);