]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/slap.h
Experiment with busy loop protection...
[openldap] / servers / slapd / slap.h
index 40e6580b36647e834055cbd8be61e5652125acf2..a8c770a03facc9990f57a7561155c88663eae33c 100644 (file)
@@ -32,7 +32,6 @@
 #include <ldap_schema.h>
 
 #include "ldap_pvt_thread.h"
-#include "ldif.h"
 
 LDAP_BEGIN_DECL
 
@@ -219,6 +218,17 @@ typedef struct slap_ssf_set {
 #define SLAP_SCHERR_NOT_SUPPORTED      15
 #define SLAP_SCHERR_BAD_DESCR  16
 
+typedef union slap_sockaddr {
+       struct sockaddr sa_addr;
+       struct sockaddr_in sa_in_addr;
+#ifdef LDAP_PF_INET6
+       struct sockaddr_in6 sa_in6_addr;
+#endif
+#ifdef LDAP_PF_LOCAL
+       struct sockaddr_un sa_un_addr;
+#endif
+} Sockaddr;
+
 typedef struct slap_oid_macro {
        struct berval som_oid;
        char **som_names;
@@ -479,6 +489,14 @@ struct slap_internal_schema {
 
        /* Undefined Attribute Type */
        AttributeType   *si_at_undefined;
+
+       /* Matching Rules */
+       MatchingRule    *si_mr_distinguishedNameMatch;
+       MatchingRule    *si_mr_integerMatch;
+
+       /* Syntaxes */
+       Syntax          *si_syn_distinguishedName;
+       Syntax          *si_syn_integer;
 };
 
 typedef struct slap_attr_assertion {
@@ -1128,6 +1146,9 @@ struct slap_backend_info {
 typedef struct slap_op {
        ber_int_t       o_opid;         /* id of this operation           */
        ber_int_t       o_msgid;        /* msgid of the request           */
+#ifdef LDAP_CONNECTIONLESS
+       Sockaddr        o_peeraddr;     /* UDP peer address               */
+#endif
 
        ldap_pvt_thread_t       o_tid;  /* thread handling this op        */
 
@@ -1195,6 +1216,9 @@ typedef struct slap_conn {
        BerElement      *c_currentber;  /* ber we're attempting to read */
        int             c_writewaiter;  /* true if writer is waiting */
 
+#ifdef LDAP_CONNECTIONLESS
+       int     c_is_udp;               /* true if this is (C)LDAP over UDP */
+#endif
 #ifdef HAVE_TLS
        int     c_is_tls;               /* true if this LDAP over raw TLS */
        int     c_needs_tls_accept;     /* true if SSL_accept should be called */