summaryrefslogtreecommitdiff
path: root/source4/smb_server/smb/nttrans.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-03-06 16:19:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:52:19 -0500
commita0e66eac7d8ff337b77e078038d0b23a25b22ee7 (patch)
tree07c99842739305ba950f6c3a1b4eb575f6e6d462 /source4/smb_server/smb/nttrans.c
parent0533fed85adefc9aa74b6d5ae6b4293fb9c11d6a (diff)
downloadsamba-a0e66eac7d8ff337b77e078038d0b23a25b22ee7.tar.gz
samba-a0e66eac7d8ff337b77e078038d0b23a25b22ee7.tar.bz2
samba-a0e66eac7d8ff337b77e078038d0b23a25b22ee7.zip
r13870: prefix more functions with smbsrv_
metze (This used to be commit e6275db7b926d3660ad4a0f40041a5129001427a)
Diffstat (limited to 'source4/smb_server/smb/nttrans.c')
-rw-r--r--source4/smb_server/smb/nttrans.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/source4/smb_server/smb/nttrans.c b/source4/smb_server/smb/nttrans.c
index d1476e3601..8872398fc6 100644
--- a/source4/smb_server/smb/nttrans.c
+++ b/source4/smb_server/smb/nttrans.c
@@ -362,7 +362,7 @@ void smbsrv_reply_nttrans(struct smbsrv_request *req)
/* parse request */
if (req->in.wct < 19) {
- req_reply_error(req, NT_STATUS_FOOBAR);
+ smbsrv_send_error(req, NT_STATUS_FOOBAR);
return;
}
@@ -379,14 +379,14 @@ void smbsrv_reply_nttrans(struct smbsrv_request *req)
trans.in.function = SVAL(req->in.vwv, 36);
if (req->in.wct != 19 + trans.in.setup_count) {
- req_reply_dos_error(req, ERRSRV, ERRerror);
+ smbsrv_send_dos_error(req, ERRSRV, ERRerror);
return;
}
/* parse out the setup words */
trans.in.setup = talloc_array(req, uint16_t, trans.in.setup_count);
if (!trans.in.setup) {
- req_reply_error(req, NT_STATUS_NO_MEMORY);
+ smbsrv_send_error(req, NT_STATUS_NO_MEMORY);
return;
}
for (i=0;i<trans.in.setup_count;i++) {
@@ -395,7 +395,7 @@ void smbsrv_reply_nttrans(struct smbsrv_request *req)
if (!req_pull_blob(req, req->in.hdr + param_ofs, param_count, &trans.in.params) ||
!req_pull_blob(req, req->in.hdr + data_ofs, data_count, &trans.in.data)) {
- req_reply_error(req, NT_STATUS_FOOBAR);
+ smbsrv_send_error(req, NT_STATUS_FOOBAR);
return;
}
@@ -410,14 +410,14 @@ void smbsrv_reply_nttrans(struct smbsrv_request *req)
status = nttrans_backend(req, &trans);
if (NT_STATUS_IS_ERR(status)) {
- req_reply_error(req, status);
+ smbsrv_send_error(req, status);
return;
}
#if 0
/* w2k3 does not check the max_setup count */
if (trans.out.setup_count > trans.in.max_setup) {
- req_reply_error(req, NT_STATUS_BUFFER_TOO_SMALL);
+ smbsrv_send_error(req, NT_STATUS_BUFFER_TOO_SMALL);
return;
}
#endif
@@ -435,10 +435,10 @@ void smbsrv_reply_nttrans(struct smbsrv_request *req)
params = trans.out.params.data;
data = trans.out.data.data;
- req_setup_reply(req, 18 + trans.out.setup_count, 0);
+ smbsrv_setup_reply(req, 18 + trans.out.setup_count, 0);
if (!NT_STATUS_IS_OK(status)) {
- req_setup_error(req, status);
+ smbsrv_setup_error(req, status);
}
/* we need to divide up the reply into chunks that fit into
@@ -464,7 +464,7 @@ void smbsrv_reply_nttrans(struct smbsrv_request *req)
/* don't destroy unless this is the last chunk */
if (params_left - this_param != 0 ||
data_left - this_data != 0) {
- this_req = req_setup_secondary(req);
+ this_req = smbsrv_setup_secondary_request(req);
} else {
this_req = req;
}
@@ -505,7 +505,7 @@ void smbsrv_reply_nttrans(struct smbsrv_request *req)
params += this_param;
data += this_data;
- req_send_reply(this_req);
+ smbsrv_send_reply(this_req);
} while (params_left != 0 || data_left != 0);
}
@@ -515,5 +515,5 @@ void smbsrv_reply_nttrans(struct smbsrv_request *req)
****************************************************************************/
void smbsrv_reply_nttranss(struct smbsrv_request *req)
{
- req_reply_error(req, NT_STATUS_FOOBAR);
+ smbsrv_send_error(req, NT_STATUS_FOOBAR);
}