Jeremy Allison
1229881df6
libcli/smb: Change smb2cli_create() and smb2cli_create_recv() to return a parameter blob of the newly opened/created file.
...
Will use in the smb2 client code.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2013-08-15 09:07:06 +02:00
Jeremy Allison
00f784ec91
libcli/smb: Fix smb2cli_write_recv() and smb2cli_write() to return the bytes written.
...
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2013-08-15 09:07:05 +02:00
Stefan Metzmacher
20d43a1d30
libcli/smb: pass smbXcli_tcon to smb2cli_ioctl*()
...
metze
2012-07-24 22:20:06 +02:00
Stefan Metzmacher
86a5ab731b
libcli/smb: pass smbXcli_tcon to smb2cli_write*()
...
metze
2012-07-24 22:20:06 +02:00
Stefan Metzmacher
697b82a619
libcli/smb: pass smbXcli_tcon to smb2cli_read*()
...
metze
2012-07-24 22:20:06 +02:00
Stefan Metzmacher
74f9b52e65
libcli/smb: pass smbXcli_tcon to smb2cli_close*()
...
metze
2012-07-24 22:20:06 +02:00
Stefan Metzmacher
32b33999db
libcli/smb: pass smbXcli_tcon to smb2cli_create*()
...
metze
2012-07-24 22:20:06 +02:00
Stefan Metzmacher
697c88d6b1
s3:cli_np_tstream: pass a leading backslash for the pipe name for SMB1
...
metze
2012-05-28 19:51:55 +02:00
Luk Claes
d8c0646a5d
s3:libsmb: get rid of cli_state_protocol
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:45 +02:00
Stefan Metzmacher
b488567a18
s3:cli_np_tstream: include smbXcli_base.h, because we'll use functions from there
...
metze
2012-05-15 18:25:59 +02:00
Luk Claes
c7a1292628
s3/libsmb: Generalise cli_state in smb2 write calls
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-12 01:01:31 +02:00
Luk Claes
5f4a009f4f
s3/libsmb: Generalise cli_state in smb2 ioctl calls
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-12 00:46:09 +02:00
Luk Claes
87d890fdd9
s3/libsmb: Generalise cli_state in smb2 create calls
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-12 00:45:21 +02:00
Luk Claes
f6db3d7bef
s3/libsmb: Generalise cli_state in smb2 close calls
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-12 00:44:41 +02:00
Luk Claes
14473f37f5
s3-libsmb: Generalise cli_state in smb2 read calls
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-12 00:43:53 +02:00
Stefan Metzmacher
b3a3c50eb8
s3:libsmb/cli_np_tstream: add support for SMB2
...
metze
2012-04-27 08:31:39 +02:00
Stefan Metzmacher
b88d649e40
s3:libsmb/cli_np_tstream: remove unused tstream_cli_np_existing()
...
metze
2012-04-27 08:31:38 +02:00
Stefan Metzmacher
71c695d8d1
s3:cli_np_tstream: make use of cli_set_timeout()
...
metze
2011-08-03 09:01:40 +02:00
Stefan Metzmacher
957cfd23e1
s3:libsmb/cli_np_tstream: s/TSTREAM_CLI_NP_BUF_SIZE/TSTREAM_CLI_NP_MAX_BUF_SIZE
...
This isn't the fixed buffer size anymore, as we use dynamic beffer
it's just the maximum size.
metze
2011-06-08 17:46:22 +02:00
Stefan Metzmacher
ad1cf187fd
s3:libsmb:cli_np_tstream: use dynamic talloc buffers
...
Having 8192 bytes on an idle connection is a bit to much,
so we better use dynamic buffers using talloc, which also
avoids a memcpy in the common SMBtrans readv codepath.
metze
2011-06-08 17:46:22 +02:00
Stefan Metzmacher
c3ac298a1f
s3:libsmb/cli_np_tstream: use larger buffers to avoid a bug NT4 servers (bug #8195 )
...
NT4 servers return NT_STATUS_PIPE_BUSY if we try a SMBtrans
and the SMBwriteX before hasn't transmited the whole DCERPC fragment.
W2K and above is happy with that.
As a result we try to match the behavior of Windows and older Samba clients,
they use write and read buffers of 4280 bytes instead of 1024 bytes.
On Windows only the SMBtrans based read uses 1024 (while we also use 4280
there).
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Jun 7 20:25:32 CEST 2011 on sn-devel-104
2011-06-07 20:25:32 +02:00
Günther Deschner
508e160776
s3: fix some -Wunused-but-set-variable build warnings.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon May 30 17:41:18 CEST 2011 on sn-devel-104
2011-05-30 17:41:18 +02:00
Günther Deschner
27022587e3
s3-libsmb: move protos to libsmb/proto.h
...
Guenther
2011-05-06 16:37:18 +02:00
Günther Deschner
ea8960448d
s3-libsmb: run minimal_includes.pl.
...
Guenther
2011-05-05 02:05:27 +02:00
Günther Deschner
50883cfeb4
s3-tevent: only include ../lib/util/tevent wrappers where needed.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Apr 29 14:00:30 CEST 2011 on sn-devel-104
2011-04-29 14:00:30 +02:00
Jeremy Allison
c377b0e718
Fix up some buildfarm warnings.
2011-02-09 21:21:04 +01:00
Stefan Metzmacher
7a47aed770
s3:cli_np_tstream: if SMBtrans is desired, the readv needs to wait for the last writev chunk.
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Dec 21 17:43:06 CET 2010 on sn-devel-104
2010-12-21 17:43:06 +01:00
Stefan Metzmacher
07ba35adcb
s3:libsmb: add tstream_cli_np_get_cli_state()
...
metze
2010-12-15 15:26:05 +01:00
Stefan Metzmacher
c0f9e963b6
s3:libsmb: add tstream_cli_np_set_timeout()
...
metze
2010-12-15 15:26:05 +01:00
Stefan Metzmacher
0df669e141
s3:libsmb: add tstream_cli_np_use_trans() and the needed logic
...
tstream_cli_np_use_trans() defers the next tstream_writev
to the next tstream_readv and send both as an SMBtrans request.
metze
2010-12-15 15:26:05 +01:00
Stefan Metzmacher
e08c324fc5
s3:libsmb: add tstream_is_cli_np()
...
metze
2010-12-15 15:26:05 +01:00
Stefan Metzmacher
c0ac1cebfb
s3:libsmb: add cli_np_tstream.c
...
This abstracts a named pipe over smb as a tstream,
which will make it easier to implement the dcerpc
layer in a more generic way.
metze
2010-12-15 15:26:05 +01:00