summaryrefslogtreecommitdiffstats
path: root/source3/libsmb/async_smb.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Add new async libsmb infrastructureVolker Lendecke2009-04-061-0/+765
| | | | | | | | I know this is just yet another iteration, but I like this one much better than the one that exists right now :-) It will do trans and echo requests without a _recv helper and without unnecessary memcpy().
* s3:libsmb: use new simplified smb_signing code for the client sideStefan Metzmacher2009-03-231-15/+28
| | | | | | | | | | We store the seqnum/mid mapping in the cli_request structure for async requests and in the cli_state structure for sync calls. We skip the signing check for oplock requests while waiting for async requests coming in. metze
* Fix crash in async_smb.cBo Yang2009-03-201-3/+6
|
* Split up async_req into a generic and a NTSTATUS specific partVolker Lendecke2009-02-011-2/+2
|
* Make is_andx_req non-staticVolker Lendecke2009-01-311-26/+0
|
* Fix a valgrind error when the socket diesVolker Lendecke2009-01-281-4/+9
| | | | | Don't reference anything that might have been deleted in the async_req_error call.
* struct async_req doesn't really need to carry an event_contextVolker Lendecke2009-01-031-1/+1
|
* Fix setting smb_len for huge write&x callsVolker Lendecke2008-12-191-1/+14
|
* Add the cli_wct_ofs routine to calculate the offset for write&xVolker Lendecke2008-12-191-0/+31
|
* Add a doxygen comment line I forgot to mergeVolker Lendecke2008-12-191-0/+1
|
* Convert cli_request->outbuf to uint8_tVolker Lendecke2008-12-191-13/+15
|
* For large smbwrite&x, we need more than 64k bccVolker Lendecke2008-12-191-4/+4
|
* Add some commentsVolker Lendecke2008-12-191-0/+22
| | | | | | If it takes more than 10 seconds to understand the code you've written yourself less than a year ago, it's time for comments or refactoring. I couldn't find a way to refactor that cleanly, so add comments :-)
* Fix the padding calculation in smb_splice_chain for "bytes_padding!=0"Volker Lendecke2008-12-191-1/+1
|
* Pass "bytes_alignment" up through cli_request_sendVolker Lendecke2008-12-191-2/+5
| | | | This parameter makes smb_spice_chain add padding before the bytes field
* Prefer network writes over readsVolker Lendecke2008-12-191-32/+33
| | | | | | If we really want to keep the pipe busy, we need to write everything we have as early as possible, giving the kernel the chance to get rid of the buffers quickly :-)
* Add a "bytes_padding" parameter to smb_splice_chainVolker Lendecke2008-12-081-12/+28
| | | | | For example open&x and write&x needs the bytes to be aligned relative to the SMB header. In particular for write&x we should not have to move stuff around.
* Factor out smb_splice_chain(), to be used by chain_reply() in smbdVolker Lendecke2008-12-081-46/+98
|
* Fixed "argument differ in signedness" warning on linuxTim Prouty2008-10-141-2/+2
|
* Ensure we handle signals correctly during the async calls.Jeremy Allison2008-10-091-2/+2
| | | | Jeremy.
* Remove a cast -- thanks metzeVolker Lendecke2008-09-171-2/+2
|
* Factor out validate_smb_cryptoVolker Lendecke2008-09-121-41/+53
| | | | (This used to be commit 37fcc9dc462dfb006fdac294e49c0dae7588c103)
* Fix "make test" -- gna...Volker Lendecke2008-09-121-1/+1
| | | | (This used to be commit c1d3ae80b5f5f07c5efcd7f3ee301d5c3090f3c6)
* remove a pointless empty lineVolker Lendecke2008-09-121-1/+0
| | | | (This used to be commit fba250ece45f6632c7d89b0ea28baab047e41a8f)
* Add a paranoia check on incoming PDUsVolker Lendecke2008-09-121-0/+7
| | | | (This used to be commit 8b81b85200b7ca18cf81fdbbc3254d8578b35f43)
* Move setting the mid field in req->outbuf from _cork to _uncorkVolker Lendecke2008-09-091-1/+1
| | | | | | The async trans calls need this, as for secondary trans calls they have to modify the MID from what cli_request_chain() gave us. (This used to be commit c85de4b7b5db8b54b8bf0f91acbd6d08d1b0bc9d)
* Add utility function cli_in_chain()Volker Lendecke2008-09-091-0/+15
| | | | | | This gives a hint whether a function is called from within the middle of a chain. In particular the trans calls don't really like this. (This used to be commit 4252b32db5ef7483f2c5c52312b6e6dc68d1d687)
* Protect against a closed socketVolker Lendecke2008-09-051-0/+5
| | | | (This used to be commit d6cb5fdafbddb08d32b788674eff509cae9525c6)
* Do proper error handling if the socket is closedVolker Lendecke2008-09-051-2/+8
| | | | (This used to be commit e5a27773f97d7017cfa345799c6803fd82c8e797)
* Remove cli_request_get()Volker Lendecke2008-08-281-17/+6
| | | | | req->private_data==NULL at this point is definitely a bug. (This used to be commit ce3dc9f616cafc1289a94ac7cae0beca967d836e)
* Add cli_request->recv_helperVolker Lendecke2008-08-281-1/+6
| | | | | Necessary for requests with multiple replies (This used to be commit cb2e338eb33dfb4627f9b43456af0c86d7d268c6)
* Activate code to enable chained requestsVolker Lendecke2008-08-281-176/+27
| | | | | Add the CHAIN1 torture test (This used to be commit 82992d74a99b056bbfe90e1b79190e0b7c0bf2bd)
* This adds the code to allow chained requests in libsmb/Volker Lendecke2008-08-281-0/+534
| | | | | | This is not compiled yet, but it makes the patches much easier to read if it is add in bulk. (This used to be commit b4c539ba041bab8856c83816f08a35b5f5b21740)
* Move "struct cli_request" from client.h to async_smb.hVolker Lendecke2008-08-281-6/+32
| | | | | Also add some comments (This used to be commit 2ecc311f785317caf5b60051147dcd085c80d64f)
* Add cli_pull_replyVolker Lendecke2008-08-281-0/+54
| | | | | | Along the lines of cli_request_send this abstracts away the smb-level buffer handling when parsing replies we got from the server. (This used to be commit 253134d3aaa359fdfb665709dd5686f69af7f8fd)
* Remove cli->event_ctx, pass it explicitlyVolker Lendecke2008-08-281-70/+24
| | | | | | Storing the event_context as permanent state in struct cli_state creates more complex code than necessary IMO. (This used to be commit debb37f703075008e5ea7d34d214cfa4d0f8f916)
* Refactoring: Add the routine cli_request_send()Volker Lendecke2008-08-281-5/+57
| | | | | | cli_request_send() is supposed to bundle all generic SMB-header handling. This makes cli_request_new static to async_smb.c. (This used to be commit 7e73dd4e7622db64d30d48ba106892e0895fc188)
* Prevent NT_STATUS 0xF1000000 errors from appearing whenJim McDonough2008-08-141-0/+6
| | | | | | | dos errors are used and there is no error. It should be mapped directly to NT_STATUS_OK. smbclient to older servers didn't work. (This used to be commit 78f009b7ef1f1d63b21df9ba6da7fcca01c12109)
* Move inbuf handling to before the PDU handlingVolker Lendecke2008-03-081-58/+59
| | | | | In an error case, correctly discard the offending PDU (This used to be commit 0aa195b5d623e1f26f2a1b9e91323a5ddd3ff282)
* Add infrastructure to support async SMB requestsVolker Lendecke2008-03-061-0/+483
(This used to be commit e2153301351559f30f2714345f4c1ca6c5f1a45f)