Commit 5dfbf936 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

need this outside for back monitor ...

parent 75f1addd
......@@ -36,20 +36,6 @@ int deny_severity = LOG_NOTICE;
time_t starttime;
ber_socket_t dtblsize;
typedef struct slap_listener {
char* sl_url;
char* sl_name;
#ifdef HAVE_TLS
int sl_is_tls;
#endif
#ifdef LDAP_CONNECTIONLESS
int sl_is_udp; /* UDP listener is also data port */
#endif
ber_socket_t sl_sd;
Sockaddr sl_sa;
#define sl_addr sl_sa.sa_in_addr
} Listener;
Listener **slap_listeners = NULL;
#define SLAPD_LISTEN 10
......
......@@ -1063,7 +1063,8 @@ LDAP_SLAPD_F (int) do_unbind LDAP_P((Connection *conn, Operation *op));
LDAP_SLAPD_F (int) do_extended LDAP_P((Connection *conn, Operation *op));
LDAP_SLAPD_V (ber_socket_t) dtblsize;
LDAP_SLAPD_V (ber_socket_t) dtblsize;
LDAP_SLAPD_V (Listener **) slap_listeners;
LDAP_END_DECL
......
......@@ -1491,6 +1491,23 @@ typedef struct sasl_regexp {
#define FLAG_GETDN_AUTHCID 2
#define FLAG_GETDN_AUTHZID 4
/*
* listener; need to access it from monitor backend
*/
typedef struct slap_listener {
char* sl_url;
char* sl_name;
#ifdef HAVE_TLS
int sl_is_tls;
#endif
#ifdef LDAP_CONNECTIONLESS
int sl_is_udp; /* UDP listener is also data port */
#endif
ber_socket_t sl_sd;
Sockaddr sl_sa;
#define sl_addr sl_sa.sa_in_addr
} Listener;
LDAP_END_DECL
#include "proto-slap.h"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment