Lines Matching defs:afd

128 static const struct afd {
188 const struct afd *, const char *));
192 static const struct afd *find_afd __P((int));
225 #define GET_AI(ai, afd, addr) \
228 (ai) = get_ai(pai, (afd), (addr)); \
738 const struct afd *afd;
747 afd = find_afd(pai->ai_family);
748 if (afd == NULL)
752 GET_AI(cur->ai_next, afd, afd->a_addrany);
758 GET_AI(cur->ai_next, afd, afd->a_loopback);
785 const struct afd *afd;
795 afd = find_afd(pai->ai_family);
796 if (afd == NULL)
799 switch (afd->a_af) {
803 if (pai->ai_family == afd->a_af ||
805 GET_AI(cur->ai_next, afd, pton);
815 if (inet_pton(afd->a_af, hostname, pton) == 1) {
816 if (pai->ai_family == afd->a_af ||
818 GET_AI(cur->ai_next, afd, pton);
851 const struct afd *afd;
857 afd = find_afd(pai->ai_family);
858 if (afd == NULL)
861 if (!afd->a_scoped)
919 get_ai(pai, afd, addr)
921 const struct afd *afd;
928 + (afd->a_socklen));
934 memset(ai->ai_addr, 0, (size_t)afd->a_socklen);
936 ai->ai_addr->sa_len = afd->a_socklen;
938 ai->ai_addrlen = afd->a_socklen;
939 ai->ai_addr->sa_family = ai->ai_family = afd->a_af;
941 memcpy(p + afd->a_off, addr, (size_t)afd->a_addrlen);
1070 static const struct afd *
1074 const struct afd *afd;
1078 for (afd = afdl; afd->a_af; afd++) {
1079 if (afd->a_af == af)
1080 return afd;
1164 const struct afd *afd;
1170 afd = find_afd(af);
1171 if (afd == NULL)
1188 afd = find_afd(af);
1189 if (afd == NULL)
1193 GET_AI(cur->ai_next, afd, ap);
1223 const struct afd *afd;
1225 afd = find_afd(pai->ai_family);
1226 if (afd == NULL)
1229 return(get_ai(pai, afd, cp));