summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-07-07 18:07:47 +0200
committerStefan Metzmacher <metze@samba.org>2008-07-07 20:59:18 +0200
commitbbbe06fb096bf7dfbfc406594a98607544d00805 (patch)
tree9dd2f356317fed6607804d2b09a8ccf5f6a0113a /source4/torture
parent4af2de3f038de1a553b620cb46436a05664e5e03 (diff)
downloadsamba-bbbe06fb096bf7dfbfc406594a98607544d00805.tar.gz
samba-bbbe06fb096bf7dfbfc406594a98607544d00805.tar.bz2
samba-bbbe06fb096bf7dfbfc406594a98607544d00805.zip
torture: .in.max_data should not depend on the smb max size
We now support async multi fragment SMBtrans calls. metze (This used to be commit ba8499867af90dcd88455476b1f58a2ab18f159b)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/basic/aliases.c10
-rw-r--r--source4/torture/basic/scanner.c8
2 files changed, 9 insertions, 9 deletions
diff --git a/source4/torture/basic/aliases.c b/source4/torture/basic/aliases.c
index 89146de99d..6bb8f99622 100644
--- a/source4/torture/basic/aliases.c
+++ b/source4/torture/basic/aliases.c
@@ -90,7 +90,7 @@ static bool qfsinfo_aliases(struct torture_context *tctx, struct smbcli_state *c
uint16_t setup = TRANSACT2_QFSINFO;
t2.in.max_param = 0;
- t2.in.max_data = smb_raw_max_trans_data(cli->tree, 0);
+ t2.in.max_data = UINT16_MAX;
t2.in.max_setup = 0;
t2.in.flags = 0;
t2.in.timeout = 0;
@@ -112,7 +112,7 @@ static bool qfileinfo_aliases(struct torture_context *tctx, struct smbcli_state
int fnum;
t2.in.max_param = 2;
- t2.in.max_data = smb_raw_max_trans_data(cli->tree, 2);
+ t2.in.max_data = UINT16_MAX;
t2.in.max_setup = 0;
t2.in.flags = 0;
t2.in.timeout = 0;
@@ -151,7 +151,7 @@ static bool qpathinfo_aliases(struct torture_context *tctx, struct smbcli_state
int fnum;
t2.in.max_param = 2;
- t2.in.max_data = smb_raw_max_trans_data(cli->tree, 2);
+ t2.in.max_data = UINT16_MAX;
t2.in.max_setup = 0;
t2.in.flags = 0;
t2.in.timeout = 0;
@@ -193,7 +193,7 @@ static bool findfirst_aliases(struct torture_context *tctx, struct smbcli_state
int fnum;
t2.in.max_param = 16;
- t2.in.max_data = smb_raw_max_trans_data(cli->tree, 16);
+ t2.in.max_data = UINT16_MAX;
t2.in.max_setup = 0;
t2.in.flags = 0;
t2.in.timeout = 0;
@@ -346,7 +346,7 @@ static bool setpathinfo_aliases(struct torture_context *tctx,
int fnum;
t2.in.max_param = 32;
- t2.in.max_data = smb_raw_max_trans_data(cli->tree, 32);
+ t2.in.max_data = UINT16_MAX;
t2.in.max_setup = 0;
t2.in.flags = 0;
t2.in.timeout = 0;
diff --git a/source4/torture/basic/scanner.c b/source4/torture/basic/scanner.c
index 6ccd4ba1cc..5212f1edee 100644
--- a/source4/torture/basic/scanner.c
+++ b/source4/torture/basic/scanner.c
@@ -65,8 +65,8 @@ static NTSTATUS try_trans2(struct smbcli_state *cli,
mem_ctx = talloc_init("try_trans2");
- t2.in.max_param = 64;
- t2.in.max_data = smb_raw_max_trans_data(cli->tree, 64);
+ t2.in.max_param = UINT16_MAX;
+ t2.in.max_data = UINT16_MAX;
t2.in.max_setup = 10;
t2.in.flags = 0;
t2.in.timeout = 0;
@@ -378,8 +378,8 @@ static NTSTATUS try_nttrans(struct smbcli_state *cli,
ntdata_blob.length = data_len;
ntdata_blob.data = data;
- parms.in.max_param = 64;
- parms.in.max_data = smb_raw_max_trans_data(cli->tree, 64);
+ parms.in.max_param = UINT32_MAX;
+ parms.in.max_data = UINT32_MAX;
parms.in.max_setup = 0;
parms.in.setup_count = 0;
parms.in.function = op;