summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-07-24 08:56:02 +0200
committerStefan Metzmacher <metze@samba.org>2012-07-24 18:44:04 +0200
commitcc0d49063035030dff58d4a2cb9ca45f9316f173 (patch)
treec3e13f59d2203c2796a190a28a8f3f5b0fc6a796 /source4/libcli
parenta6e5b98827c9a85a8e062ed9dba10e1205801135 (diff)
downloadsamba-cc0d49063035030dff58d4a2cb9ca45f9316f173.tar.gz
samba-cc0d49063035030dff58d4a2cb9ca45f9316f173.tar.bz2
samba-cc0d49063035030dff58d4a2cb9ca45f9316f173.zip
s4:libcli/raw: parse extended SMBtconX responses
metze
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/raw/clitree.c4
-rw-r--r--source4/libcli/raw/interfaces.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/source4/libcli/raw/clitree.c b/source4/libcli/raw/clitree.c
index c232b51055..a47b395a6b 100644
--- a/source4/libcli/raw/clitree.c
+++ b/source4/libcli/raw/clitree.c
@@ -118,6 +118,10 @@ NTSTATUS smb_raw_tcon_recv(struct smbcli_request *req, TALLOC_CTX *mem_ctx,
if (req->in.wct >= 3) {
parms->tconx.out.options = SVAL(req->in.vwv, VWV(2));
}
+ if (req->in.wct >= 7) {
+ parms->tconx.out.max_access = IVAL(req->in.vwv, VWV(3));
+ parms->tconx.out.guest_max_access = IVAL(req->in.vwv, VWV(5));
+ }
/* output is actual service name */
p = req->in.data;
diff --git a/source4/libcli/raw/interfaces.h b/source4/libcli/raw/interfaces.h
index 05dea500be..547f8a9a63 100644
--- a/source4/libcli/raw/interfaces.h
+++ b/source4/libcli/raw/interfaces.h
@@ -283,6 +283,8 @@ union smb_tcon {
} in;
struct {
uint16_t options;
+ uint32_t max_access;
+ uint32_t guest_max_access;
char *dev_type;
char *fs_type;
uint16_t tid;