summaryrefslogtreecommitdiff
path: root/resolver.c
diff options
context:
space:
mode:
authorpdw <>2002-10-24 16:15:12 +0000
committerpdw <>2002-10-24 16:15:12 +0000
commit0be11c0e8a77c95560be75b638a37783d15aca47 (patch)
treef72a8f30386cfc14bf230331d6cd6d72dc80f20e /resolver.c
parente1c4cb7adf3546cafa4653bd9e9e74b3a6545ef8 (diff)
downloadiftop-0be11c0e8a77c95560be75b638a37783d15aca47.zip
Added popup status messages.
Diffstat (limited to 'resolver.c')
-rw-r--r--resolver.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/resolver.c b/resolver.c
index d790b24..55fbd58 100644
--- a/resolver.c
+++ b/resolver.c
@@ -44,6 +44,9 @@ int tail;
#if defined(USE_GETHOSTBYADDR_R)
/**
* Implementation of do_resolve for platforms with working gethostbyaddr_r
+ *
+ * Some implementations of libc choose to implement gethostbyaddr_r as
+ * a non thread-safe wrapper to gethostbyaddr. An interesting choice...
*/
char* do_resolve(struct in_addr * addr) {
struct hostent hostbuf, *hp;
@@ -102,7 +105,8 @@ char *do_resolve(struct in_addr *addr) {
#include <resolv.h>
/**
- * libresolv implementation
+ * libresolv implementation
+ * resolver functions may not be thread safe
*/
char* do_resolve(struct in_addr * addr) {
char msg[PACKETSZ];