#define LUTIL_GETPEEREID( s, uid, gid, bv ) lutil_getpeereid( s, uid, gid )
#endif
+typedef union Sockaddr {
+ struct sockaddr sa_addr;
+ struct sockaddr_in sa_in_addr;
+#ifdef LDAP_PF_INET6
+ struct sockaddr_storage sa_storage;
+ struct sockaddr_in6 sa_in6_addr;
+#endif
+#ifdef LDAP_PF_LOCAL
+ struct sockaddr_un sa_un_addr;
+#endif
+} Sockaddr;
+
/* DNS RFC defines max host name as 255. New systems seem to use 1024 */
#ifndef NI_MAXHOST
#define NI_MAXHOST 256
#define LDAP_IPADDRLEN sizeof("IP=255.255.255.255:65336")
#endif
-struct sockaddr_in;
-struct sockaddr_in6;
-struct sockaddr_storage;
-struct sockaddr_un;
-
-typedef union Sockaddr {
- struct sockaddr sa_addr;
- struct sockaddr_in sa_in_addr;
-#ifdef LDAP_PF_INET6
- struct sockaddr_storage sa_storage;
- struct sockaddr_in6 sa_in6_addr;
-#endif
-#ifdef LDAP_PF_LOCAL
- struct sockaddr_un sa_un_addr;
-#endif
-} Sockaddr;
+typedef union Sockaddr Sockaddr;
LDAP_F (void)
ldap_pvt_sockaddrstr LDAP_P((
#include "ldap_log.h"
#include "ldap_defaults.h"
#include "lber.h"
+#include "ldap_pvt.h"
static FILE *log_file = NULL;
static int debug_lastc = '\n';
#include <ac/stdlib.h>
#include <ac/string.h>
#include <ac/unistd.h>
-#include <ac/socket.h>
#include <stdio.h>
#include <ac/string.h>
#include <ac/unistd.h>
#include <ac/param.h>
-#include <ac/socket.h>
#ifdef SLAPD_CRYPT
# include <ac/crypt.h>
#include <ac/stdlib.h>
#include <ac/string.h>
#include <ac/unistd.h>
-#include <ac/socket.h>
#ifdef HAVE_SASL_SASL_H
#include <sasl/sasl.h>