s3:libsmb: let cli_read_max_bufsize() return the max number of possible bytes
commit4c9b1841ed41df0b4084447ffcbfeb470679105f
authorStefan Metzmacher <metze@samba.org>
Mon, 12 Sep 2011 00:45:22 +0000 (12 02:45 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 14 Sep 2011 19:57:33 +0000 (14 12:57 -0700)
treeee77619cc270aaf65585e44f3e40126e96868ac1
parentf8c26c16b82989e002b839fc9eba6386fc036f6a
s3:libsmb: let cli_read_max_bufsize() return the max number of possible bytes

s3:libsmb: let cli_read_max_bufsize() return the max number of possible bytes

We now return what's possible on the wire.

Which is 0xFFFF if CAP_LARGE_READX is given by the server
or 0xFFFFFF - data_offset if CIFS_UNIX_LARGE_READ_CAP
is available (without signing/sealing). Otherwise we return
max_xmit - data_offset.

metze

Signed-off-by: Jeremy Allison <jra@samba.org>
source3/libsmb/clireadwrite.c