summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-05-03 11:45:52 +0200
committerGünther Deschner <gd@samba.org>2010-05-03 14:44:07 +0200
commit457826947f97ad914e5e4543a9c668bd8b4fa019 (patch)
tree5352896344a31f07372c70b0235f700d5ce8c5f7 /source4
parentfe33db6c06e107fef575da670d026c7303472e9b (diff)
downloadsamba-457826947f97ad914e5e4543a9c668bd8b4fa019.tar.gz
samba-457826947f97ad914e5e4543a9c668bd8b4fa019.tar.bz2
samba-457826947f97ad914e5e4543a9c668bd8b4fa019.zip
s4-smbtorture: add rap_cli_push_param() and rap_cli_push_sendbuf().
Guenther
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/rap/rap.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/source4/torture/rap/rap.c b/source4/torture/rap/rap.c
index ead7f8aa0c..aaf0c0f430 100644
--- a/source4/torture/rap/rap.c
+++ b/source4/torture/rap/rap.c
@@ -141,6 +141,20 @@ static void rap_cli_push_rcvbuf(struct rap_call *call, int len)
call->rcv_datalen = len;
}
+static void rap_cli_push_sendbuf(struct rap_call *call, int len)
+{
+ rap_cli_push_paramdesc(call, 's');
+ rap_cli_push_paramdesc(call, 'T');
+ ndr_push_uint16(call->ndr_push_param, NDR_SCALARS, len);
+ call->rcv_datalen = len;
+}
+
+static void rap_cli_push_param(struct rap_call *call, uint16_t val)
+{
+ rap_cli_push_paramdesc(call, 'P');
+ ndr_push_uint16(call->ndr_push_param, NDR_SCALARS, val);
+}
+
static void rap_cli_expect_multiple_entries(struct rap_call *call)
{
rap_cli_push_paramdesc(call, 'e');