diff options
author | Jeremy Allison <jra@samba.org> | 2010-12-10 15:46:41 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2010-12-10 15:46:41 -0800 |
commit | 2ac579ca76452c58022e8b9e41d5168dd25fe3b0 (patch) | |
tree | ac83a978995be4d66e700409ef59eeed78637958 /source3/include | |
parent | 533ba5a919b08a3eb040af7ea980163661b642c7 (diff) | |
download | samba-2ac579ca76452c58022e8b9e41d5168dd25fe3b0.tar.gz samba-2ac579ca76452c58022e8b9e41d5168dd25fe3b0.tar.bz2 samba-2ac579ca76452c58022e8b9e41d5168dd25fe3b0.zip |
Add a SMB2 crediting algorithm, by default the same as Windows. Defaults to 128 credits.
Jeremy.
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/local.h | 5 | ||||
-rw-r--r-- | source3/include/proto.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/source3/include/local.h b/source3/include/local.h index 6c9a8c3055..3014f613b2 100644 --- a/source3/include/local.h +++ b/source3/include/local.h @@ -265,4 +265,9 @@ #define CLIENT_NDR_PADDING_SIZE 8 #define SERVER_NDR_PADDING_SIZE 8 +#define DEFAULT_SMB2_MAX_READ (1024*1024) +#define DEFAULT_SMB2_MAX_WRITE (1024*1024) +#define DEFAULT_SMB2_MAX_TRANSACT (1024*1024) +#define DEFAULT_SMB2_MAX_CREDITS 128 + #endif diff --git a/source3/include/proto.h b/source3/include/proto.h index 3ef12158b8..084d97f16e 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -3351,6 +3351,7 @@ int lp_config_backend(void); int lp_smb2_max_read(void); int lp_smb2_max_write(void); int lp_smb2_max_trans(void); +int lp_smb2_max_credits(void); char *lp_preexec(int ); char *lp_postexec(int ); char *lp_rootpreexec(int ); |