From 3d7a4db6bc5cd42432393bf69622c435e67e811f Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 19 Mar 2013 09:02:52 +0100 Subject: [PATCH] libcli/smb: add SMB_CAP_LEGACY_CLIENT_MASK define Older Samba releases (<= 3.6.x) expect the client to send CAP_LARGE_READX in order to let the client use large reads. Signed-off-by: Stefan Metzmacher Reviewed-by: Jeremy Allison --- libcli/smb/smb_constants.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libcli/smb/smb_constants.h b/libcli/smb/smb_constants.h index f1ecbe99e4b..6dd7b28a148 100644 --- a/libcli/smb/smb_constants.h +++ b/libcli/smb/smb_constants.h @@ -253,6 +253,16 @@ enum smb_signing_setting { #define SMB_CAP_CLIENT_MASK ( \ CAP_DYNAMIC_REAUTH | \ 0) +/* + * Older Samba releases (<= 3.6.x) + * expect the client to send CAP_LARGE_READX + * in order to let the client use large reads. + */ +#define SMB_CAP_LEGACY_CLIENT_MASK ( \ + SMB_CAP_CLIENT_MASK | \ + CAP_LARGE_READX | \ + CAP_LARGE_WRITEX | \ + 0) /* Client-side offline caching policy types */ enum csc_policy { -- 2.34.1