diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-09-26 06:13:10 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2014-09-30 23:35:08 +0200 |
commit | 760f23a8e2297bfff423b81a712a86c6f62599cd (patch) | |
tree | 49cc539f5cf0eca627499c9e55c6f7f5e4d643c0 | |
parent | 703ef59d00a536794938d2eebbcdf4aaa043f4ca (diff) | |
download | samba-760f23a8e2297bfff423b81a712a86c6f62599cd.tar.gz |
s3:smb2_negprot: allow really large io sizes up to allmost 16MB
The default is still 8MB (as on Windows 2012 *).
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
-rw-r--r-- | source3/smbd/smb2_negprot.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source3/smbd/smb2_negprot.c b/source3/smbd/smb2_negprot.c index d40a17f1bb1..12ff7b4bc98 100644 --- a/source3/smbd/smb2_negprot.c +++ b/source3/smbd/smb2_negprot.c @@ -254,8 +254,13 @@ NTSTATUS smbd_smb2_request_process_negprot(struct smbd_smb2_request *req) capabilities |= SMB2_CAP_LARGE_MTU; xconn->smb2.credits.multicredit = true; - /* Windows 2012R2 allows up to 8 MB */ - max_limit = 0x800000; /* 8MB */ + /* + * We allow up to allmost 16MB. + * + * The maximum PDU size is 0xFFFFFF (16776960) + * and we need some space for the header. + */ + max_limit = 0xFFFF00; } } |