#define LDAP_BACK_CONN_CACHED_CLEAR(lc) LDAP_BACK_CONN_CLEAR((lc), LDAP_BACK_FCONN_CACHED)
LDAP *lc_ld;
+ unsigned long lc_connid;
struct berval lc_cred;
struct berval lc_bound_ndn;
unsigned lc_flags;
int li_version;
+ unsigned long li_conn_nextid;
+
/* cached connections;
* special conns are in tailq rather than in tree */
ldap_avl_info_t li_conninfo;
ldap_pvt_thread_mutex_lock( &li->li_conninfo.lai_mutex );
LDAP_BACK_CONN_ISBOUND_CLEAR( lc );
+ lc->lc_connid = li->li_conn_nextid++;
assert( lc->lc_refcnt == 1 );