summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc/rpc_echo.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-19 12:03:11 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-19 12:03:11 +0000
commit1941b5cef04c39ddf89fb236d1d81167c0b25e6b (patch)
tree04aec2a2e8fdcfd61ad0ff418287951ea098d31a /source4/librpc/rpc/rpc_echo.c
parent4e18040236c0f51a526383800fb1de8a65ab3175 (diff)
downloadsamba-1941b5cef04c39ddf89fb236d1d81167c0b25e6b.tar.gz
samba-1941b5cef04c39ddf89fb236d1d81167c0b25e6b.tar.bz2
samba-1941b5cef04c39ddf89fb236d1d81167c0b25e6b.zip
started to expand the echo tests to include more interesting test
cases. We fail one of the alignment tests. (This used to be commit 5bb21e57b844e98cc8f1dc264bc45097c08329e3)
Diffstat (limited to 'source4/librpc/rpc/rpc_echo.c')
-rw-r--r--source4/librpc/rpc/rpc_echo.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/source4/librpc/rpc/rpc_echo.c b/source4/librpc/rpc/rpc_echo.c
index 38b394dbf6..c774dbb36e 100644
--- a/source4/librpc/rpc/rpc_echo.c
+++ b/source4/librpc/rpc/rpc_echo.c
@@ -102,3 +102,24 @@ NTSTATUS dcerpc_TestCall(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct Test
return status;
}
+
+NTSTATUS dcerpc_TestCall2(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct TestCall2 *r)
+{
+ NTSTATUS status;
+
+ if (p->flags & DCERPC_DEBUG_PRINT_IN) {
+ NDR_PRINT_IN_DEBUG(TestCall2, r);
+ }
+
+ status = dcerpc_ndr_request(p, DCERPC_TESTCALL2, mem_ctx,
+ (ndr_push_fn_t) ndr_push_TestCall2,
+ (ndr_pull_fn_t) ndr_pull_TestCall2,
+ r);
+
+ if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
+ NDR_PRINT_OUT_DEBUG(TestCall2, r);
+ }
+ if (NT_STATUS_IS_OK(status)) status = r->out.result;
+
+ return status;
+}