diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-05-15 09:59:58 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-05-15 09:59:58 +0000 |
commit | e2e33eb3207e1a6f85ca36cafc564aa9427fd7af (patch) | |
tree | ac7b1e195c62e0d1075868569abade01d7875499 /source3/rpc_server | |
parent | b599ae9e4020807ec3bbfb8a3c1995a87ef168cf (diff) | |
download | samba-e2e33eb3207e1a6f85ca36cafc564aa9427fd7af.tar.gz samba-e2e33eb3207e1a6f85ca36cafc564aa9427fd7af.tar.bz2 samba-e2e33eb3207e1a6f85ca36cafc564aa9427fd7af.zip |
call prs_dump() on every input and output packet so we have plenty of
data to work with
(This used to be commit 839ab0e33255be37d72c113c2e09baaa34d50ce4)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_pipe.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c index 9c1ad2ef5a..853c1b8ed6 100644 --- a/source3/rpc_server/srv_pipe.c +++ b/source3/rpc_server/srv_pipe.c @@ -1080,11 +1080,14 @@ BOOL api_rpcTNP(pipes_struct *p, char *rpc_name, struct api_struct *api_rpc_cmds prs_struct *rpc_in) { int fn_num; - + fstring name; + uint32 offset1, offset2; + /* interpret the command */ DEBUG(4,("api_rpcTNP: %s op 0x%x - ", rpc_name, p->hdr_req.opnum)); - prs_dump(rpc_name, p->hdr_req.opnum, rpc_in); + slprintf(name, sizeof(name), "in_%s", rpc_name); + prs_dump(name, p->hdr_req.opnum, rpc_in); for (fn_num = 0; api_rpc_cmds[fn_num].name; fn_num++) { if (api_rpc_cmds[fn_num].opnum == p->hdr_req.opnum && api_rpc_cmds[fn_num].fn != NULL) { @@ -1104,6 +1107,8 @@ BOOL api_rpcTNP(pipes_struct *p, char *rpc_name, struct api_struct *api_rpc_cmds return True; } + offset1 = p->out_data.rdata.data_offset; + /* do the actual command */ if(!api_rpc_cmds[fn_num].fn(rpc_in, &p->out_data.rdata)) { DEBUG(0,("api_rpcTNP: %s: failed.\n", rpc_name)); @@ -1111,6 +1116,12 @@ BOOL api_rpcTNP(pipes_struct *p, char *rpc_name, struct api_struct *api_rpc_cmds return False; } + slprintf(name, sizeof(name), "out_%s", rpc_name); + offset2 = p->out_data.rdata.data_offset; + p->out_data.rdata.data_offset = offset1; + prs_dump(name, p->hdr_req.opnum, &p->out_data.rdata); + p->out_data.rdata.data_offset = offset2; + DEBUG(5,("api_rpcTNP: called %s successfully\n", rpc_name)); return True; |