summaryrefslogtreecommitdiff
path: root/source4/libcli/smb2
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-04-14 11:55:19 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-04-14 11:55:19 +0200
commit7cf29ac84e2f45dfc56d5e46678a96527a38a1c1 (patch)
treed4b3755cd8acebfc0736de7ae03b68a5cbf35dd0 /source4/libcli/smb2
parentf78bc8c489b02b521e9ecbdbdc72d160c6911b6b (diff)
parent7361899e80c1001eb7d7c13b12ba72cbc3b758f2 (diff)
downloadsamba-7cf29ac84e2f45dfc56d5e46678a96527a38a1c1.tar.gz
samba-7cf29ac84e2f45dfc56d5e46678a96527a38a1c1.tar.bz2
samba-7cf29ac84e2f45dfc56d5e46678a96527a38a1c1.zip
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake4
(This used to be commit 9d3d64e1387e9f20383c255bba27128cf4b9519e)
Diffstat (limited to 'source4/libcli/smb2')
-rw-r--r--source4/libcli/smb2/read.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/source4/libcli/smb2/read.c b/source4/libcli/smb2/read.c
index b61f918481..9d40e32a4d 100644
--- a/source4/libcli/smb2/read.c
+++ b/source4/libcli/smb2/read.c
@@ -33,12 +33,16 @@ struct smb2_request *smb2_read_send(struct smb2_tree *tree, struct smb2_read *io
req = smb2_request_init_tree(tree, SMB2_OP_READ, 0x30, true, 0);
if (req == NULL) return NULL;
- SSVAL(req->out.body, 0x02, 0); /* pad */
+ SCVAL(req->out.body, 0x02, 0); /* pad */
+ SCVAL(req->out.body, 0x03, 0); /* reserved */
SIVAL(req->out.body, 0x04, io->in.length);
SBVAL(req->out.body, 0x08, io->in.offset);
smb2_push_handle(req->out.body+0x10, &io->in.file.handle);
- SBVAL(req->out.body, 0x20, io->in.unknown1);
- SBVAL(req->out.body, 0x28, io->in.unknown2);
+ SIVAL(req->out.body, 0x20, io->in.min_count);
+ SIVAL(req->out.body, 0x24, io->in.channel);
+ SIVAL(req->out.body, 0x28, io->in.remaining);
+ SSVAL(req->out.body, 0x2C, io->in.channel_offset);
+ SSVAL(req->out.body, 0x2E, io->in.channel_length);
smb2_transport_send(req);
@@ -67,7 +71,8 @@ NTSTATUS smb2_read_recv(struct smb2_request *req,
return status;
}
- io->out.unknown1 = BVAL(req->in.body, 0x08);
+ io->out.remaining = IVAL(req->in.body, 0x08);
+ io->out.reserved = IVAL(req->in.body, 0x0C);
return smb2_request_destroy(req);
}