diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-06-13 01:55:21 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2014-07-11 02:32:08 +0200 |
commit | 1000e424fcc530c6befe442b36f7e0e6912c0c30 (patch) | |
tree | 4ac4293d2f581c88ebaea534bc2537c4f8e099f6 | |
parent | 740d12d1e77d356ff22c3725dce8d5019c86a7a5 (diff) | |
download | samba-1000e424fcc530c6befe442b36f7e0e6912c0c30.tar.gz samba-1000e424fcc530c6befe442b36f7e0e6912c0c30.tar.xz samba-1000e424fcc530c6befe442b36f7e0e6912c0c30.zip |
s3:smb2_negprot: allow "smb max {read,write,trans}" up to 8MiB
This matches Windows 2012R2.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
-rw-r--r-- | source3/smbd/smb2_negprot.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/smbd/smb2_negprot.c b/source3/smbd/smb2_negprot.c index 5fa1fbbe00..deeb19dedf 100644 --- a/source3/smbd/smb2_negprot.c +++ b/source3/smbd/smb2_negprot.c @@ -300,14 +300,14 @@ NTSTATUS smbd_smb2_request_process_negprot(struct smbd_smb2_request *req) capabilities |= SMB2_CAP_LARGE_MTU; req->sconn->smb2.supports_multicredit = true; - /* SMB >= 2.1 has 1 MB of allowed size */ - max_limit = 0x100000; /* 1MB */ + /* Windows 2012R2 allows up to 8 MB */ + max_limit = 0x800000; /* 8MB */ } } /* - * the defaults are 1MB, but we'll limit this to max_limit based on - * the dialect (64kb for SMB2.0, 1MB for SMB2.1 with LargeMTU) + * the defaults are 8MB, but we'll limit this to max_limit based on + * the dialect (64kb for SMB 2.0, 8MB for SMB >= 2.1 with LargeMTU) * * user configured values exceeding the limits will be overwritten, * only smaller values will be accepted |