Lines Matching refs:family
75 static int fake_hostent(const char *name, int family,
77 static int file_lookup(const char *name, int family, struct hostent **host);
87 void ares_gethostbyname(ares_channel channel, const char *name, int family, in ares_gethostbyname() argument
94 switch (family) { in ares_gethostbyname()
104 if (fake_hostent(name, family, callback, arg)) in ares_gethostbyname()
116 hquery->want_family = family; in ares_gethostbyname()
240 static int fake_hostent(const char *name, int family, in fake_hostent() argument
250 if (family == AF_INET || family == AF_INET6) in fake_hostent()
274 family = AF_INET; in fake_hostent()
276 if (family == AF_INET6) in fake_hostent()
282 if (family == AF_INET) in fake_hostent()
287 else if (family == AF_INET6) in fake_hostent()
303 hostent.h_addrtype = family; in fake_hostent()
313 int family, struct hostent **host) in ares_gethostbyname_file() argument
329 result = file_lookup(name, family, host); in ares_gethostbyname_file()
338 static int file_lookup(const char *name, int family, struct hostent **host) in file_lookup() argument
400 while ((status = ares__get_hostent(fp, family, host)) == ARES_SUCCESS) in file_lookup()
459 if (sortlist[i].family != AF_INET) in get_address_index()
515 if (sortlist[i].family != AF_INET6) in get6_address_index()