diff --git a/libcli/smb/smbXcli_base.c b/libcli/smb/smbXcli_base.c index 70285e63173..0b83a13391e 100644 --- a/libcli/smb/smbXcli_base.c +++ b/libcli/smb/smbXcli_base.c @@ -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) { diff --git a/libcli/smb/smbXcli_base.h b/libcli/smb/smbXcli_base.h index 6041ae53d07..12dd7debb5c 100644 --- a/libcli/smb/smbXcli_base.h +++ b/libcli/smb/smbXcli_base.h @@ -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);