diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-03-19 09:02:52 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-03-20 09:32:25 -0700 |
commit | 3d7a4db6bc5cd42432393bf69622c435e67e811f (patch) | |
tree | d1b96ad29f4c44ab27009a0a2c6f05c99653d9c8 | |
parent | f7564cae4cdd1e2629404c5a1229978451584257 (diff) | |
download | samba-3d7a4db6bc5cd42432393bf69622c435e67e811f.tar.gz samba-3d7a4db6bc5cd42432393bf69622c435e67e811f.tar.bz2 samba-3d7a4db6bc5cd42432393bf69622c435e67e811f.zip |
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 <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r-- | libcli/smb/smb_constants.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libcli/smb/smb_constants.h b/libcli/smb/smb_constants.h index f1ecbe99e4..6dd7b28a14 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 { |