]> git.sur5r.net Git - openldap/commitdiff
Added ldap_pvt_get_hname. Use instead of ldap_pvt_gethostbyaddr_a when
authorHoward Chu <hyc@openldap.org>
Wed, 5 Mar 2003 01:34:31 +0000 (01:34 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 5 Mar 2003 01:34:31 +0000 (01:34 +0000)
all you want is the hostname.

include/ldap_pvt.h

index 6988c16c411a229ddfec4b77c330b10bb4b3817f..271fa93ce1ac979b1a607485084a68569f40b632 100644 (file)
@@ -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 */