diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-11-03 10:01:20 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-11-03 10:01:20 +0000 |
commit | 0a427a43c4464c05bdceb662fd6d3895790ea581 (patch) | |
tree | 484d6610cbdfbd6aa459e336e1ae7252e833d482 /source4/libcli/ndr/ndr_echo.c | |
parent | 399fff106d268a5ea95fd2e60735d92b80bcecb1 (diff) | |
download | samba-0a427a43c4464c05bdceb662fd6d3895790ea581.tar.gz samba-0a427a43c4464c05bdceb662fd6d3895790ea581.tar.bz2 samba-0a427a43c4464c05bdceb662fd6d3895790ea581.zip |
added SinkData and SourceData tests for rpcecho
(This used to be commit 7c356350e6148078725de6b6829eb0855771ae17)
Diffstat (limited to 'source4/libcli/ndr/ndr_echo.c')
-rw-r--r-- | source4/libcli/ndr/ndr_echo.c | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/source4/libcli/ndr/ndr_echo.c b/source4/libcli/ndr/ndr_echo.c index 456b254f3a..a085a6534d 100644 --- a/source4/libcli/ndr/ndr_echo.c +++ b/source4/libcli/ndr/ndr_echo.c @@ -68,3 +68,45 @@ NTSTATUS ndr_push_rpcecho_echodata(struct ndr_push *ndr, NDR_CHECK(ndr_push_bytes(ndr, r->in.data, r->in.len)); return NT_STATUS_OK; } + +/* + parse a sinkdata +*/ +NTSTATUS ndr_pull_rpcecho_sinkdata(struct ndr_pull *ndr, + struct rpcecho_sinkdata *r) +{ + return NT_STATUS_OK; +} + +/* + push a sinkdata +*/ +NTSTATUS ndr_push_rpcecho_sinkdata(struct ndr_push *ndr, + struct rpcecho_sinkdata *r) +{ + NDR_CHECK(ndr_push_u32(ndr, r->in.len)); + NDR_CHECK(ndr_push_u32(ndr, r->in.len)); + NDR_CHECK(ndr_push_bytes(ndr, r->in.data, r->in.len)); + return NT_STATUS_OK; +} + +/* + parse a sourcedata +*/ +NTSTATUS ndr_pull_rpcecho_sourcedata(struct ndr_pull *ndr, + struct rpcecho_sourcedata *r) +{ + NDR_CHECK(ndr_pull_u32(ndr, &r->out.len)); + NDR_CHECK(ndr_pull_bytes(ndr, &r->out.data, r->out.len)); + return NT_STATUS_OK; +} + +/* + push a sourcedata +*/ +NTSTATUS ndr_push_rpcecho_sourcedata(struct ndr_push *ndr, + struct rpcecho_sourcedata *r) +{ + NDR_CHECK(ndr_push_u32(ndr, r->in.len)); + return NT_STATUS_OK; +} |