Home | History | Annotate | Download | only in iputils

Lines Matching defs:hp

121 	struct hostent *hp;
287 hp = gethostbyname(idn);
288 if (!hp) {
295 memcpy(&whereto.sin_addr, hp->h_addr, 4);
297 if (idna_to_unicode_lzlz(hp->h_name, &hnamebuf, 0) != IDNA_SUCCESS) {
298 hnamebuf = strdup(hp->h_name);
305 strncpy(hnamebuf, hp->h_name, sizeof(hnamebuf) - 1);
1311 struct hostent *hp;
1317 !(hp = gethostbyaddr((char *)&addr, 4, AF_INET)))
1322 if (idna_to_unicode_lzlz(hp->h_name, &s, 0) != IDNA_SUCCESS)
1327 snprintf(buf, sizeof(buf), "%s (%s)", s ? s : hp->h_name,