/*
- * $Id: comm.cc,v 1.47 1996/07/25 07:10:30 wessels Exp $
+ * $Id: comm.cc,v 1.48 1996/07/26 19:29:54 wessels Exp $
*
* DEBUG: section 5 Socket Functions
* AUTHOR: Harvest Derived
errno = x;
default:
debug(5, 1, "connect: %s:%d: %s.\n",
- inet_ntoa(address->sin_addr),
+ fqdnFromAddr(address->sin_addr),
ntohs(address->sin_port),
xstrerror());
return COMM_ERROR;
/*
- * $Id: fqdncache.cc,v 1.4 1996/07/25 07:10:33 wessels Exp $
+ * $Id: fqdncache.cc,v 1.5 1996/07/26 19:29:55 wessels Exp $
*
* DEBUG: section 34 FQDN Cache
* AUTHOR: Harvest Derived
return;
fqdncache_release(f);
}
+
+char *fqdnFromAddr(addr)
+ struct in_addr addr;
+{
+ char *n;
+ if ((n = fqdncache_gethostbyaddr(addr, 0)))
+ return n;
+ return inet_ntoa(addr);
+}