From 760f23a8e2297bfff423b81a712a86c6f62599cd Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 26 Sep 2014 06:13:10 +0200 Subject: [PATCH] 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 Reviewed-by: Michael Adam --- source3/smbd/smb2_negprot.c | 9 +++++++-- 1 file 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; } }