#define be_sync bd_info->bi_tool_sync
#endif
-#define SLAP_BFLAG_LASTMOD 0x0001U
-
+#define SLAP_BFLAG_NOLASTMOD 0x0001U
#define SLAP_BFLAG_GLUE_INSTANCE 0x0010U /* a glue backend */
#define SLAP_BFLAG_GLUE_SUBORDINATE 0x0020U /* child of a glue hierarchy */
#define SLAP_BFLAG_GLUE_LINKED 0x0040U /* child is connected to parent */
-
#define SLAP_BFLAG_ALIASES 0x0100U
-#define SLAP_BFLAG_MONITOR 0x0200U
-#define SLAP_BFLAG_REFERRALS 0x0400U
-#define SLAP_BFLAG_SUBENTRIES 0x0800U
-
+#define SLAP_BFLAG_REFERRALS 0x0200U
+#define SLAP_BFLAG_SUBENTRIES 0x0400U
+#define SLAP_BFLAG_NOMONITOR 0x1000U
slap_mask_t be_flags;
-#define SLAP_LASTMOD(be) ((be)->be_flags & SLAP_BFLAG_LASTMOD)
+#define SLAP_LASTMOD(be) (!((be)->be_flags & SLAP_BFLAG_NOLASTMOD))
+#define SLAP_ALIASES(be) ((be)->be_flags & SLAP_BFLAG_ALIASES)
+#define SLAP_REFERRALS(be) ((be)->be_flags & SLAP_BFLAG_REFERRALS)
+#define SLAP_SUBENTRIES(be) ((be)->be_flags & SLAP_BFLAG_SUBENTRIES)
+#define SLAP_MONITOR(be) (!(be)->be_flags & SLAP_BFLAG_NOMONITOR))
slap_mask_t be_restrictops; /* restriction operations */
#define SLAP_RESTRICT_OP_ADD 0x0001U
#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"