From: Howard Chu Date: Wed, 5 Mar 2003 01:34:31 +0000 (+0000) Subject: Added ldap_pvt_get_hname. Use instead of ldap_pvt_gethostbyaddr_a when X-Git-Tag: NO_SLAP_OP_BLOCKS~181 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e87f588f00ddab6ea16aff3dcce7f3bc678f3f62;p=openldap Added ldap_pvt_get_hname. Use instead of ldap_pvt_gethostbyaddr_a when all you want is the hostname. --- 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 */