summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-13 09:26:53 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-13 09:26:53 +0000
commit3031937d56363cc6322062a66c991182664f40bc (patch)
tree4d2ef00a8f2e269fdefeccc04f6ae2db9dd45d63 /source4/librpc/rpc
parentff02537261e53b4ec60e5dcad32bf4207065b028 (diff)
downloadsamba-3031937d56363cc6322062a66c991182664f40bc.tar.gz
samba-3031937d56363cc6322062a66c991182664f40bc.tar.bz2
samba-3031937d56363cc6322062a66c991182664f40bc.zip
* fixed conformant arrays in structures
* expanded the rpcecho test * started adding the NETDFS pipe (This used to be commit 095ab42cbdd5c1c5ab753e2eb275742ba822c8b9)
Diffstat (limited to 'source4/librpc/rpc')
-rw-r--r--source4/librpc/rpc/dcerpc.c2
-rw-r--r--source4/librpc/rpc/rpc_dfs.c82
-rw-r--r--source4/librpc/rpc/rpc_echo.c8
3 files changed, 92 insertions, 0 deletions
diff --git a/source4/librpc/rpc/dcerpc.c b/source4/librpc/rpc/dcerpc.c
index 3018b8621b..82c07dd197 100644
--- a/source4/librpc/rpc/dcerpc.c
+++ b/source4/librpc/rpc/dcerpc.c
@@ -792,6 +792,8 @@ NTSTATUS dcerpc_ndr_request(struct dcerpc_pipe *p,
goto failed;
}
+ dump_data(10, pull->data, pull->data_size);
+
/* pull the structure from the blob */
status = ndr_pull(pull, struct_ptr);
if (!NT_STATUS_IS_OK(status)) {
diff --git a/source4/librpc/rpc/rpc_dfs.c b/source4/librpc/rpc/rpc_dfs.c
new file mode 100644
index 0000000000..1e827bda07
--- /dev/null
+++ b/source4/librpc/rpc/rpc_dfs.c
@@ -0,0 +1,82 @@
+/* dcerpc client calls auto-generated by pidl */
+
+#include "includes.h"
+
+
+NTSTATUS dcerpc_dfs_Exist(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct dfs_Exist *r)
+{
+ return dcerpc_ndr_request(p, DCERPC_DFS_EXIST, mem_ctx,
+ (ndr_push_fn_t) ndr_push_dfs_Exist,
+ (ndr_pull_fn_t) ndr_pull_dfs_Exist,
+ r);
+}
+
+NTSTATUS dcerpc_dfs_Add(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct dfs_Add *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_DFS_ADD, mem_ctx,
+ (ndr_push_fn_t) ndr_push_dfs_Add,
+ (ndr_pull_fn_t) ndr_pull_dfs_Add,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_dfs_Remove(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct dfs_Remove *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_DFS_REMOVE, mem_ctx,
+ (ndr_push_fn_t) ndr_push_dfs_Remove,
+ (ndr_pull_fn_t) ndr_pull_dfs_Remove,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_dfs_UNKNOWN3(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct dfs_UNKNOWN3 *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_DFS_UNKNOWN3, mem_ctx,
+ (ndr_push_fn_t) ndr_push_dfs_UNKNOWN3,
+ (ndr_pull_fn_t) ndr_pull_dfs_UNKNOWN3,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_dfs_Info(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct dfs_Info *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_DFS_INFO, mem_ctx,
+ (ndr_push_fn_t) ndr_push_dfs_Info,
+ (ndr_pull_fn_t) ndr_pull_dfs_Info,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_dfs_Enum(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct dfs_Enum *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_DFS_ENUM, mem_ctx,
+ (ndr_push_fn_t) ndr_push_dfs_Enum,
+ (ndr_pull_fn_t) ndr_pull_dfs_Enum,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
diff --git a/source4/librpc/rpc/rpc_echo.c b/source4/librpc/rpc/rpc_echo.c
index e5cbb913a1..b7e3bf4e7c 100644
--- a/source4/librpc/rpc/rpc_echo.c
+++ b/source4/librpc/rpc/rpc_echo.c
@@ -34,3 +34,11 @@ NTSTATUS dcerpc_echo_SourceData(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, stru
(ndr_pull_fn_t) ndr_pull_echo_SourceData,
r);
}
+
+NTSTATUS dcerpc_TestCall(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct TestCall *r)
+{
+ return dcerpc_ndr_request(p, DCERPC_TESTCALL, mem_ctx,
+ (ndr_push_fn_t) ndr_push_TestCall,
+ (ndr_pull_fn_t) ndr_pull_TestCall,
+ r);
+}