mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
libcli/smb: add smb2cli_conn_get_cur_credits
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
8cbdc6a6df
commit
799b7e75c3
@ -2782,6 +2782,11 @@ void smb2cli_conn_set_max_credits(struct smbXcli_conn *conn,
|
||||
conn->smb2.max_credits = max_credits;
|
||||
}
|
||||
|
||||
uint16_t smb2cli_conn_get_cur_credits(struct smbXcli_conn *conn)
|
||||
{
|
||||
return conn->smb2.cur_credits;
|
||||
}
|
||||
|
||||
uint8_t smb2cli_conn_get_io_priority(struct smbXcli_conn *conn)
|
||||
{
|
||||
if (conn->protocol < PROTOCOL_SMB3_11) {
|
||||
|
@ -368,6 +368,7 @@ uint32_t smb2cli_conn_max_read_size(struct smbXcli_conn *conn);
|
||||
uint32_t smb2cli_conn_max_write_size(struct smbXcli_conn *conn);
|
||||
void smb2cli_conn_set_max_credits(struct smbXcli_conn *conn,
|
||||
uint16_t max_credits);
|
||||
uint16_t smb2cli_conn_get_cur_credits(struct smbXcli_conn *conn);
|
||||
uint8_t smb2cli_conn_get_io_priority(struct smbXcli_conn *conn);
|
||||
void smb2cli_conn_set_io_priority(struct smbXcli_conn *conn,
|
||||
uint8_t io_priority);
|
||||
|
Loading…
Reference in New Issue
Block a user