libcli/smb: add max_credits arg to smbXcli_negprot_send()
authorRalph Boehme <slow@samba.org>
Mon, 27 Feb 2017 15:14:39 +0000 (16:14 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 3 Mar 2017 20:55:27 +0000 (21:55 +0100)
commit8cbdc6a6dfe22a777e3420a6471726604fcafe60
treec239e6981c55c780b8e2182fca39ec17033e33c3
parentac71bb3eb45fc87365206a5f6f9083c42972b25a
libcli/smb: add max_credits arg to smbXcli_negprot_send()

This allows source4/torture code to set the option for tests by
preparing a struct smbcli_options with max_credits set to some value and
pass that to a torture_smb2_connection_ext().

This will be used in subsequent smbtorture test for SMB2 creditting.

Behaviour of existing upper layers is unchanged, they simply pass the
wanted max credits value to smbXcli_negprot_send() instead of
retrofitting it with a call to smb2cli_conn_set_max_credits().

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
libcli/smb/smbXcli_base.c
libcli/smb/smbXcli_base.h
source3/libsmb/cliconnect.c
source3/torture/torture.c
source4/libcli/raw/libcliraw.h
source4/libcli/raw/rawnegotiate.c
source4/libcli/smb2/connect.c
source4/param/loadparm.c