summaryrefslogtreecommitdiff
path: root/source4/rpc_server/dcom/oxidresolver.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/rpc_server/dcom/oxidresolver.c')
-rw-r--r--source4/rpc_server/dcom/oxidresolver.c30
1 files changed, 28 insertions, 2 deletions
diff --git a/source4/rpc_server/dcom/oxidresolver.c b/source4/rpc_server/dcom/oxidresolver.c
index 2ccf136cad..76fa6a760e 100644
--- a/source4/rpc_server/dcom/oxidresolver.c
+++ b/source4/rpc_server/dcom/oxidresolver.c
@@ -24,6 +24,24 @@
#include "librpc/gen_ndr/ndr_oxidresolver.h"
#include "rpc_server/dcerpc_server.h"
+struct OXIDObject
+{
+ struct GUID OID;
+};
+
+struct PingSet
+{
+ HYPER_T id;
+ struct OXIDObject *objects;
+ struct PingSet *prev, *next;
+};
+
+/* Maximum number of missed ping calls before a client is presumed
+ * gone */
+#define MAX_MISSED_PINGS 3
+
+/* Maximum number of seconds between two ping calls */
+#define MAX_PING_TIME 60
/*
ResolveOxid
@@ -44,13 +62,18 @@ static WERROR SimplePing(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx
return WERR_NOT_SUPPORTED;
}
-
/*
ComplexPing
*/
static WERROR ComplexPing(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
struct ComplexPing *r)
{
+ struct PingSet *ps;
+
+ /* If r->in.SetId == 0, create new PingSet */
+
+ /* Otherwise, look up pingset by id */
+
return WERR_NOT_SUPPORTED;
}
@@ -61,7 +84,7 @@ static WERROR ComplexPing(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ct
static WERROR ServerAlive(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
struct ServerAlive *r)
{
- return WERR_NOT_SUPPORTED;
+ return WERR_OK;
}
@@ -84,6 +107,9 @@ static WERROR ServerAlive2(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_c
return WERR_NOT_SUPPORTED;
}
+/* FIXME: Regularly ping objects in use by local programs on
+ * remote servers */
+
/* include the generated boilerplate */
#include "librpc/gen_ndr/ndr_oxidresolver_s.c"