summaryrefslogtreecommitdiff
path: root/source4/libcli/smb2/tcon.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-02-13 17:03:49 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-02-13 17:03:49 +0100
commit05d58f49df30791e205799366666804d4a9bf47d (patch)
tree97503bbd04ae20a7aeab14759c96c0eedee13010 /source4/libcli/smb2/tcon.c
parent11bc6056ea2eec9eb9a206fa5ae2a2b6b3efe21a (diff)
parent60e205c34c4a28060f47ba1aa7c7592d33d302bc (diff)
downloadsamba-05d58f49df30791e205799366666804d4a9bf47d.tar.gz
samba-05d58f49df30791e205799366666804d4a9bf47d.tar.bz2
samba-05d58f49df30791e205799366666804d4a9bf47d.zip
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
(This used to be commit b14d61a3b8055b7a8172e18e5bd69e7cab6eacdb)
Diffstat (limited to 'source4/libcli/smb2/tcon.c')
-rw-r--r--source4/libcli/smb2/tcon.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/source4/libcli/smb2/tcon.c b/source4/libcli/smb2/tcon.c
index 5a09970584..db35669d41 100644
--- a/source4/libcli/smb2/tcon.c
+++ b/source4/libcli/smb2/tcon.c
@@ -58,7 +58,7 @@ struct smb2_request *smb2_tree_connect_send(struct smb2_tree *tree,
SBVAL(req->out.hdr, SMB2_HDR_SESSION_ID, tree->session->uid);
- SSVAL(req->out.body, 0x02, io->in.unknown1);
+ SSVAL(req->out.body, 0x02, io->in.reserved);
status = smb2_push_o16s16_string(&req->out, 0x04, io->in.path);
if (!NT_STATUS_IS_OK(status)) {
talloc_free(req);
@@ -85,10 +85,18 @@ NTSTATUS smb2_tree_connect_recv(struct smb2_request *req, struct smb2_tree_conne
io->out.tid = IVAL(req->in.hdr, SMB2_HDR_TID);
- io->out.unknown1 = SVAL(req->in.body, 0x02);
- io->out.unknown2 = IVAL(req->in.body, 0x04);
- io->out.unknown3 = IVAL(req->in.body, 0x08);
+ io->out.share_type = CVAL(req->in.body, 0x02);
+ io->out.reserved = CVAL(req->in.body, 0x03);
+ io->out.flags = IVAL(req->in.body, 0x04);
+ io->out.capabilities= IVAL(req->in.body, 0x08);
io->out.access_mask = IVAL(req->in.body, 0x0C);
+
+ if (io->out.capabilities & ~SMB2_CAP_ALL) {
+ DEBUG(0,("Unknown capabilities mask 0x%x\n", io->out.capabilities));
+ }
+ if (io->out.flags & ~SMB2_SHAREFLAG_ALL) {
+ DEBUG(0,("Unknown tcon shareflag 0x%x\n", io->out.flags));
+ }
return smb2_request_destroy(req);
}