Lines Matching full:poop
311 int comparehosts (poop, hp)
312 HINF * poop;
320 if (strcmp (poop->name, hp->h_name) != 0) { /* case-sensitive */
322 if (strcasecmp (poop->name, hp->h_name) != 0) { /* normal */
324 holler ("DNS fwd/rev mismatch: %s != %s", poop->name, hp->h_name);
342 register HINF * poop = NULL;
367 poop = (HINF *) Hmalloc (sizeof (HINF));
368 if (! poop)
370 strcpy (poop->name, unknown); /* preload it */
381 strncpy (poop->name, hostent->h_name, MAXHOSTNAMELEN - 2);
383 memcpy (&poop->iaddrs[x], hostent->h_addr_list[x], sizeof (IA));
384 strncpy (poop->addrs[x], inet_ntoa (poop->iaddrs[x]),
385 sizeof (poop->addrs[0]));
388 return (poop); /* inverse stuff, we're done. */
391 for (x = 0; poop->iaddrs[x].s_addr && (x < 8); x++) {
392 hostent = gethostbyaddr ((char *)&poop->iaddrs[x],
396 poop->addrs[x]);
398 (void) comparehosts (poop, hostent);
402 memcpy (poop->iaddrs, &iaddr, sizeof (IA));
403 strncpy (poop->addrs[0], inet_ntoa (iaddr), sizeof (poop->addrs));
405 return (poop);
407 return (poop); /* the full DNS hair */
413 strncpy (poop->name, hostent->h_name, MAXHOSTNAMELEN - 2);
414 hostent = gethostbyname (poop->name);
417 poop->name);
419 (void) comparehosts (poop, hostent);
426 return (poop);