libcli/smb: Allow dynamic setting of the max_data in SMB Pipe transaction.
authorNoel Power <noel.power@suse.com>
Thu, 5 Jun 2014 09:52:54 +0000 (10:52 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 25 Oct 2023 22:23:38 +0000 (22:23 +0000)
commit8cc1e25a00434de1afe5d9fb7f4f8e503e7fb0f5
tree466d88bccebd548998a76f14e66ccd5097fe3e1e
parent53d874455437ca3627062893cba1a2713d338f17
libcli/smb: Allow dynamic setting of the max_data in SMB Pipe transaction.

Some services like WSP can send larger messages than the current 'Max Ioctl'
limit, this results in the server producing a BUFFER_OVERFLOW status (and
additionally clipping the message sent). Add support to allow a client to
modify the hardcoded 'Max Ioctl' default value to allow the server to
successfully send larger responses.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
libcli/smb/tstream_smbXcli_np.c
libcli/smb/tstream_smbXcli_np.h