summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-08-18 20:10:12 +0000
committerLuke Leighton <lkcl@samba.org>1999-08-18 20:10:12 +0000
commitf221bfa4ace27b898c9326b1d81df59e0ceba032 (patch)
tree27c134018300d9128f13f10d9402b911135971f5 /source3/libsmb
parent07d8c3dba22da89bfc2e0c7969ab00c56dcb0de5 (diff)
downloadsamba-f221bfa4ace27b898c9326b1d81df59e0ceba032.tar.gz
samba-f221bfa4ace27b898c9326b1d81df59e0ceba032.tar.bz2
samba-f221bfa4ace27b898c9326b1d81df59e0ceba032.zip
debug info display (netbios layer).
(This used to be commit 5c974cc4a4cdcb9fd3fe01e93aa577b81cf2d18b)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clientgen.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index ecab198c94..efed3555ba 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -60,13 +60,21 @@ static BOOL cli_send_smb(struct cli_state *cli, BOOL show)
ssize_t ret;
BOOL reestablished=False;
+ len = smb_len(cli->outbuf) + 4;
+
if (show)
{
- show_msg(cli->outbuf);
+ uint8 msg_type = CVAL(cli->outbuf, 0);
+ if (msg_type == 0)
+ {
+ show_msg(cli->outbuf);
+ }
+ else
+ {
+ dump_data(10, cli->outbuf, len);
+ }
}
- len = smb_len(cli->outbuf) + 4;
-
while (nwritten < len) {
ret = write_socket(cli->fd,cli->outbuf+nwritten,len - nwritten);
if (ret <= 0 && errno == EPIPE && !reestablished)
@@ -2465,7 +2473,7 @@ BOOL cli_session_request(struct cli_state *cli,
retry:
#endif /* WITH_SSL */
- cli_send_smb(cli, False);
+ cli_send_smb(cli, True);
DEBUG(5,("Sent session request\n"));
if (!cli_receive_smb(cli))