Lines Matching full:family
36 int ares__get_hostent(FILE *fp, int family, struct hostent **host) in ares__get_hostent() argument
47 /* Validate family */ in ares__get_hostent()
48 switch (family) { in ares__get_hostent()
137 /* Convert address string to network address for the requested family. */ in ares__get_hostent()
139 addr.family = AF_UNSPEC; in ares__get_hostent()
141 if ((family == AF_INET) || (family == AF_UNSPEC)) in ares__get_hostent()
146 /* Actual network address family and length. */ in ares__get_hostent()
147 addr.family = AF_INET; in ares__get_hostent()
151 if ((family == AF_INET6) || ((family == AF_UNSPEC) && (!addrlen))) in ares__get_hostent()
155 /* Actual network address family and length. */ in ares__get_hostent()
156 addr.family = AF_INET6; in ares__get_hostent()
161 /* Ignore line if invalid address string for the requested family. */ in ares__get_hostent()
165 ** Actual address family possible values are AF_INET and AF_INET6 only. in ares__get_hostent()
190 if (addr.family == AF_INET) in ares__get_hostent()
221 /* Copy actual network address family and length. */ in ares__get_hostent()
222 hostent->h_addrtype = addr.family; in ares__get_hostent()