Home | History | Annotate | Download | only in irs

Lines Matching refs:afd

130 static const struct afd {
190 const struct afd *, const char *));
194 static const struct afd *find_afd __P((int));
227 #define GET_AI(ai, afd, addr) \
230 (ai) = get_ai(pai, (afd), (addr)); \
740 const struct afd *afd;
749 afd = find_afd(pai->ai_family);
750 if (afd == NULL)
754 GET_AI(cur->ai_next, afd, afd->a_addrany);
760 GET_AI(cur->ai_next, afd, afd->a_loopback);
787 const struct afd *afd;
797 afd = find_afd(pai->ai_family);
798 if (afd == NULL)
801 switch (afd->a_af) {
805 if (pai->ai_family == afd->a_af ||
807 GET_AI(cur->ai_next, afd, pton);
817 if (inet_pton(afd->a_af, hostname, pton) == 1) {
818 if (pai->ai_family == afd->a_af ||
820 GET_AI(cur->ai_next, afd, pton);
853 const struct afd *afd;
859 afd = find_afd(pai->ai_family);
860 if (afd == NULL)
863 if (!afd->a_scoped)
921 get_ai(pai, afd, addr)
923 const struct afd *afd;
930 + (afd->a_socklen));
936 memset(ai->ai_addr, 0, (size_t)afd->a_socklen);
938 ai->ai_addr->sa_len = afd->a_socklen;
940 ai->ai_addrlen = afd->a_socklen;
941 ai->ai_addr->sa_family = ai->ai_family = afd->a_af;
943 memcpy(p + afd->a_off, addr, (size_t)afd->a_addrlen);
1072 static const struct afd *
1076 const struct afd *afd;
1080 for (afd = afdl; afd->a_af; afd++) {
1081 if (afd->a_af == af)
1082 return afd;
1166 const struct afd *afd;
1172 afd = find_afd(af);
1173 if (afd == NULL)
1190 afd = find_afd(af);
1191 if (afd == NULL)
1195 GET_AI(cur->ai_next, afd, ap);
1225 const struct afd *afd;
1227 afd = find_afd(pai->ai_family);
1228 if (afd == NULL)
1231 return(get_ai(pai, afd, cp));