Home | History | Annotate | Download | only in net

Lines Matching defs:afd

137 static const struct afd {
228 const struct afd *, const char *);
231 static const struct afd *find_afd(int);
271 #define GET_AI(ai, afd, addr) \
274 (ai) = get_ai(pai, (afd), (addr)); \
863 const struct afd *afd;
893 afd = find_afd(pai->ai_family);
894 if (afd == NULL)
898 GET_AI(cur->ai_next, afd, afd->a_addrany);
904 GET_AI(cur->ai_next, afd, afd->a_loopback);
928 const struct afd *afd;
949 afd = find_afd(pai->ai_family);
950 if (afd == NULL)
953 switch (afd->a_af) {
957 if (pai->ai_family == afd->a_af ||
959 GET_AI(cur->ai_next, afd, pton);
977 if (inet_pton(afd->a_af, hostname, pton) == 1) {
978 if (pai->ai_family == afd->a_af ||
980 GET_AI(cur->ai_next, afd, pton);
1018 const struct afd *afd;
1035 afd = find_afd(pai->ai_family);
1036 if (afd == NULL)
1039 if (!afd->a_scoped)
1096 get_ai(const struct addrinfo *pai, const struct afd *afd, const char *addr)
1102 assert(afd != NULL);
1106 + (afd->a_socklen));
1112 memset(ai->ai_addr, 0, (size_t)afd->a_socklen);
1115 ai->ai_addr->sa_len = afd->a_socklen;
1118 ai->ai_addrlen = afd->a_socklen;
1122 ai->ai_addr->sa_family = ai->ai_family = afd->a_af;
1124 memcpy(p + afd->a_off, addr, (size_t)afd->a_addrlen);
1225 static const struct afd *
1228 const struct afd *afd;
1232 for (afd = afdl; afd->a_af; afd++) {
1233 if (afd->a_af == af)
1234 return afd;
1301 const struct afd *afd;
1455 afd = find_afd(ai.ai_family);
1456 if (afd == NULL) {
1460 cur->ai_next = get_ai(&ai, afd, (const char *)cp);