Lines Matching refs:ht1
214 compare_hostent(struct hostent *ht1, struct hostent *ht2, void *mdata)
219 if (ht1 == ht2)
222 if (ht1 == NULL || ht2 == NULL)
225 if (ht1->h_name == NULL || ht2->h_name == NULL)
228 if (ht1->h_addrtype != ht2->h_addrtype ||
229 ht1->h_length != ht2->h_length ||
230 strcmp(ht1->h_name, ht2->h_name) != 0)
233 c1 = ht1->h_aliases;
236 if ((ht1->h_aliases == NULL || ht2->h_aliases == NULL) &&
237 ht1->h_aliases != ht2->h_aliases)
274 c1 = ht1->h_addr_list;
277 if ((ht1->h_addr_list == NULL || ht2->h_addr_list== NULL) &&
278 ht1->h_addr_list != ht2->h_addr_list)
286 if (memcmp(*c1, *ct, ht1->h_length) == 0) {
302 if (memcmp(*c2, *ct, ht1->h_length) == 0) {
320 dump_hostent(ht1);