1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
/*
Unix SMB/CIFS implementation.
endpoint server for the IOXIDResolver pipe
Copyright (C) Jelmer Vernooij 2004
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include "includes.h"
#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
*/
static WERROR ResolveOxid(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
struct ResolveOxid *r)
{
return WERR_NOT_SUPPORTED;
}
/*
SimplePing
*/
static WERROR SimplePing(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
struct SimplePing *r)
{
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;
}
/*
ServerAlive
*/
static WERROR ServerAlive(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
struct ServerAlive *r)
{
return WERR_OK;
}
/*
ResolveOxid2
*/
static WERROR ResolveOxid2(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
struct ResolveOxid2 *r)
{
return WERR_NOT_SUPPORTED;
}
/*
ServerAlive2
*/
static WERROR ServerAlive2(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
struct ServerAlive2 *r)
{
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"
|