#include <quipu/dua.h>
#include "lber.h"
+#include "../../libraries/liblber/lber-int.h" /* get struct berelement */
#include "ldap.h"
#include "common.h"
-extern int dosyslog;
-#ifdef LDAP_COMPAT
-extern int ldap_compat;
-#endif
-
/*
* dsa_response - called by do_queries() when there is activity on one of
* the DSA associations. It is passed the association descriptor on which
{
#ifdef LDAP_CONNECTIONLESS
if ( m->m_cldap ) {
- SAFEMEMCPY( (char *)sb->sb_useaddr, &m->m_clientaddr,
- sizeof( struct sockaddr ));
+ lber_pvt_sb_udp_set_dst( &sb, &m->m_clientaddr );
+
Debug( LDAP_DEBUG_TRACE, "UDP response to %s port %d\n",
inet_ntoa(((struct sockaddr_in *)
- sb->sb_useaddr)->sin_addr ),
- ((struct sockaddr_in *)sb->sb_useaddr)->sin_port, 0 );
+ &m->m_clientaddr)->sin_addr ),
+ ((struct sockaddr_in *)&m->m_clientaddr)->sin_port, 0 );
}
#endif
return( send_ldap_result( sb, tag, m->m_msgid, err, matched, text ) );
int rc;
#ifdef LDAP_CONNECTIONLESS
int cldap;
-#endif
- extern int version;
-
-#ifdef LDAP_CONNECTIONLESS
- cldap = ( sb->sb_naddr > 0 );
+ cldap = ( sb->sb_io == &lber_pvt_sb_io_udp );
#endif
Debug( LDAP_DEBUG_TRACE, "send_ldap_result\n", 0, 0, 0 );