diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-12-06 13:28:35 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2014-04-01 09:26:37 +0200 |
commit | ba91a666baa0ddfb3086c700aaf6435363e2e1de (patch) | |
tree | 53de856f8daac1ff006c392b231175dafc02e18a /libcli | |
parent | 3a36bf7bc6bb9c49ab44473669d76c5351b26f83 (diff) | |
download | samba-ba91a666baa0ddfb3086c700aaf6435363e2e1de.tar.gz |
libcli/smb: add SMB_BUFFER_SIZE_MIN/MAX defines
Bug: https://bugzilla.samba.org/show_bug.cgi?id=10422
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 900839e2216048a614f2f0aeb1f79092fc93334f)
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/smb/smb_constants.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libcli/smb/smb_constants.h b/libcli/smb/smb_constants.h index 8a3ef725f1..175ffafc4d 100644 --- a/libcli/smb/smb_constants.h +++ b/libcli/smb/smb_constants.h @@ -208,6 +208,14 @@ enum smb_signing_setting { #define NEGOTIATE_SECURITY_SIGNATURES_ENABLED 0x04 #define NEGOTIATE_SECURITY_SIGNATURES_REQUIRED 0x08 +/* + * The negotiated buffer size for non LARGE_READX/WRITEX + * should be limited to uint16_t and has to be at least + * 500, which is the default for MinClientBufferSize on Windows. + */ +#define SMB_BUFFER_SIZE_MIN 500 +#define SMB_BUFFER_SIZE_MAX 65535 + /* Capabilities. see ftp.microsoft.com/developr/drg/cifs/cifs/cifs4.txt */ #define CAP_RAW_MODE 0x00000001 |