summaryrefslogtreecommitdiff
path: root/source3/smbd/ipc.c
Commit message (Collapse)AuthorAgeFilesLines
* Convert all uses of uint8/16/32 to _t in source3/smbd.Richard Sharpe2015-05-061-4/+4
| | | | | Signed-off-by: Richard Sharpe <rsharpe@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:smbd: pass smbXsrv_connection to srv_send_smb()Stefan Metzmacher2014-09-191-5/+4
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3:smbd: use req->xconn in send_trans_reply()Stefan Metzmacher2014-08-061-2/+2
| | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3:smbd: move sconn->smb1.sessions.* to xconn->smb1.sessions.*Stefan Metzmacher2014-08-061-1/+2
| | | | | | | | This prepares the structures for multi-channel support. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3:smbd: take less than SMB_BUFFER_SIZE_MIN ('500') as header overhead in ipc.cStefan Metzmacher2014-03-051-4/+6
| | | | | | | | | | | | | We're now sure that sconn->smb1.sessions.max_send is >= SMB_BUFFER_SIZE_MIN. in order to garantee some progress we need to make sure our assumed header overhead is less than SMB_BUFFER_SIZE_MIN. Assuming 372 bytes for the SMBtrans headers should still be more than enough. Bug: https://bugzilla.samba.org/show_bug.cgi?id=10422 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:smbd: make use of smbXsrv_tcon for smb1Stefan Metzmacher2012-06-251-1/+23
| | | | | | Pair-Programmed-With: Michael Adam <obnox@samba.org> metze
* s3:smbd: pass down vuid as uint64_t in ipc.cStefan Metzmacher2012-06-061-4/+4
| | | | metze
* s3:include: change files_struct->vuid to uint64_tStefan Metzmacher2012-06-061-1/+2
| | | | metze
* s3:smbd: use nt_status_np_pipe for smb1Stefan Metzmacher2012-05-231-7/+24
| | | | metze
* s3:smbd: add nt_status_np_pipe()Stefan Metzmacher2012-05-231-0/+11
| | | | | | This mapps between NT_STATUS_CONNECTION_* to NT_STATUS_PIPE_* metze
* s3:smbd/pipes: avoid passing server_event_context() as event context to ↵Stefan Metzmacher2011-12-121-2/+2
| | | | | | np_{read,write}_send metze
* s3:smbd/ipc: pass 'state' as mem_ctx to np_read_send()Stefan Metzmacher2011-12-121-1/+1
| | | | metze
* s3-talloc Change TALLOC_P() to talloc()Andrew Bartlett2011-06-091-1/+1
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_P isn't standard talloc.
* s3-talloc Change TALLOC_ARRAY() to talloc_array()Andrew Bartlett2011-06-091-1/+1
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ARRAY isn't standard talloc.
* s3-talloc Change TALLOC_REALLOC_ARRAY() to talloc_realloc()Andrew Bartlett2011-06-091-1/+1
| | | | | | | Using the standard macro makes it easier to move code into common, as TALLOC_REALLOC_ARRAY isn't standard talloc. Andrew Bartlett
* s3-globals Remove smbd_event_context() (use server_event_context())Andrew Bartlett2011-05-311-2/+2
| | | | | | | | This has been a wrapper around server_event_context() for some time now, and removing this from dummmysmbd.c assists with library dependencies. Andrew Bartlett
* Fix many const compiler warnings.Jeremy Allison2011-05-051-1/+1
|
* s3-proto: move more rpc_server prototypes out of proto.hGünther Deschner2011-05-021-0/+1
| | | | Guenther
* s3: only include smb profiling where needed.Günther Deschner2011-04-141-0/+1
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Thu Apr 14 01:31:39 CEST 2011 on sn-devel-104
* s3: include smbd/smbd.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3: Make srv_send_smb take an sconn instead of a sock fdVolker Lendecke2010-08-241-4/+4
|
* s3: Remove smbd_server_fd from api_dcerpc_cmd_read/write_doneVolker Lendecke2010-08-161-2/+2
|
* s3: Remove smbd_server_fd from send_trans_replyVolker Lendecke2010-08-161-2/+2
|
* s3: Fix some error messagesVolker Lendecke2010-08-131-3/+4
|
* s3: Remove smbd_server_conn from send_trans_replyVolker Lendecke2010-06-121-1/+1
|
* s3:smbd: add PIPE_BUSY handling for SMBtrans calls on named pipesStefan Metzmacher2010-05-271-0/+11
| | | | metze
* Fix bug #7122 - Reading a large browselist fails (server returns invalid ↵Jeremy Allison2010-02-091-0/+3
| | | | | | | | | | | | | | values in subsequent SMBtrans replies) There are two problems: 1). The server is off-by-one in the end of buffer space test. 2). The server returns 0 in the totaldata (smb_vwv1) and totalparams (smb_vwv0) fields in the second and subsequent SMBtrans replies. This patch fixes both. Jeremy.
* s3:smbd: add a smbd_server_connection pointer to connection_structStefan Metzmacher2009-08-071-2/+1
| | | | | | | This can be NULL for faked connection structs used in the rpc server or printing code. metze
* s3: Change fsp->fsp_name to be an smb_filename struct!Tim Prouty2009-07-201-1/+1
|
* s3:smbd: move tcon specific globals to struct smbd_server_connectionStefan Metzmacher2009-06-031-1/+2
| | | | metze
* s3:smbd: move some session specific globals to struct smbd_server_connectionStefan Metzmacher2009-06-031-0/+2
| | | | metze
* Fix smbd crash for close_on_completionVolker Lendecke2009-04-051-0/+4
| | | | | | handle_trans() can talloc_free "conn" if the client requests close_on_completion. "state" is a talloc_child of conn, so it will be gone when we later free state->data et al.
* s3:smbd: use new simplified snb_signing code in the serverStefan Metzmacher2009-03-231-0/+4
| | | | | | | | | We keep the seqnum/mid mapping in the smb_request structure. This also moves one global variable into the smbd_server_connection struct. metze
* Convert np_read to tevent_reqVolker Lendecke2009-03-171-11/+8
|
* Convert np_write to tevent_reqVolker Lendecke2009-03-171-12/+13
|
* S3: New module interface for SMB message statistics gatheringtodd stecher2009-02-091-4/+5
| | | | | | | This changelist allows for the addition of custom performance monitoring modules through smb.conf. Entrypoints in the main message processing code have been added to capture the command, subop, ioctl, identity and message size statistics.
* Convert api_rpc_trans_reply to async np_*Volker Lendecke2009-01-311-29/+119
|
* Remove some smb fsp knowledge from rpc_server/Volker Lendecke2009-01-201-3/+10
| | | | np_open/read/write don't have to know about files_struct
* s3:smbd: move all globals and static variables in globals.[ch]Stefan Metzmacher2009-01-081-2/+1
| | | | | | The goal is to move all this variables into a big context structure. metze
* Consolidate the buffer checks for the reply_trans style functionsVolker Lendecke2008-11-281-55/+18
| | | | | | | | This is the one where I found the problem that led to 3.2.5. So if there is one checkin in the last year that I would like others to review and *understand*, it is this one :-) Volker
* Remove the variable "size" from reply_transVolker Lendecke2008-11-281-12/+16
| | | | | | | | | | | | | This converts the range checks for the setup[] array to rely on req->wct being set correctly in init_smb_request. As that already verifies the vwv array to be in the range of the smb_request inbuf, we don't have to do overflow checks here anymore. Jeremy, please check thoroughly! :-) Thanks, Volker
* Fix the offset checks in the trans routinesVolker Lendecke2008-11-271-3/+3
| | | | | | | | | This fixes a potential crash bug, a client can make us read memory we should not read. Luckily I got the disp checks right... Volker (cherry picked from commit 64a1d80851da5b05e70ec6c96f6e9bd473748369) (cherry picked from commit f04c5650a3aeca23591ddc781c4b297caaf9bb3f)
* Do not write into inbuf for the transs requestVolker Lendecke2008-11-081-6/+12
| | | | | Instead, fix up the outbuf in send_xx_reply. In those routines, we know what we are returning.
* Remove direct inbuf refs from send_trans_replyVolker Lendecke2008-11-081-37/+35
|
* Pass smb_request to send_trans_reply to match with send_[nt]trans[2]_replyVolker Lendecke2008-11-021-9/+9
|
* Use "vwv" in trans parsingVolker Lendecke2008-11-021-16/+16
|
* Remove a bunch of direct inbuf references by adding "vwv" to smb_requestVolker Lendecke2008-11-021-6/+6
|
* Simplify params of srvstr_pull_buf_talloc()Volker Lendecke2008-11-021-2/+2
| | | | | Now that "req" is available everywhere, use it. Rename srvstr_pull_buf_talloc() to srvstr_pull_req()
* Remove a bunch of direct inbuf references by adding "buf" to smb_requestVolker Lendecke2008-11-011-1/+1
|
* Use "struct files_struct" for pipes instead of smb_np_structVolker Lendecke2008-10-131-49/+41
|