5 int gethost(name, hostp)
13 if (!strcmp(name, "test.host.dots")) {
14 *hostp = htonl(0xfedcba98);
18 if (!strcmp(name, "<thishost>"))
21 h = gethostbyname(name);
23 if ((h->h_addr != NULL) && (h->h_length == sizeof(addr))) {
24 bcopy(h->h_addr, (char *)&addr, sizeof(addr));
30 n = getnetbyname(name);
32 *hostp = (u_32_t)htonl(n->n_net & 0xffffffff);