Home | History | Annotate | Download | only in ping

Lines Matching refs:hp

1590 	struct hostent *hp;
1594 !(hp = gethostbyaddr((char *)&addr, 4, AF_INET)))
1597 snprintf(buf, sizeof(buf), "%s (%s)", hp->h_name,
1674 struct hostent *hp;
1798 hp = gethostbyname(target);
1799 hp = gethostbyname(target);
1800 hp = gethostbyname(target);
1801 if (!hp) {
1805 memcpy(&whereto.sin_addr, hp->h_addr, 4);
1806 strncpy(hnamebuf, hp->h_name, sizeof(hnamebuf) - 1);