From e87f588f00ddab6ea16aff3dcce7f3bc678f3f62 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 5 Mar 2003 01:34:31 +0000 Subject: [PATCH] Added ldap_pvt_get_hname. Use instead of ldap_pvt_gethostbyaddr_a when all you want is the hostname. --- include/ldap_pvt.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/ldap_pvt.h b/include/ldap_pvt.h index 6988c16c41..271fa93ce1 100644 --- a/include/ldap_pvt.h +++ b/include/ldap_pvt.h @@ -66,6 +66,14 @@ ldap_pvt_gethostbyaddr_a LDAP_P(( struct hostent **result, int *herrno_ptr )); +LDAP_F( int ) +ldap_pvt_get_hname LDAP_P(( + const struct sockaddr * sa, + int salen, + char *name, + int namelen, + char **herr )); + /* charray.c */ -- 2.39.5