summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-04-12 11:59:18 +0200
committerVolker Lendecke <vl@samba.org>2009-04-12 14:51:15 +0200
commita36472dd384e54374cc151cd4159f3786b4ec02b (patch)
tree9ebc296f721717ef87b7c9239bacfc9c193e0e98
parente9569ae9250ac571c63fbb450709778a247e9ca3 (diff)
downloadsamba-a36472dd384e54374cc151cd4159f3786b4ec02b.tar.gz
samba-a36472dd384e54374cc151cd4159f3786b4ec02b.tar.bz2
samba-a36472dd384e54374cc151cd4159f3786b4ec02b.zip
Extract and print the server name type the client connects to
-rw-r--r--source3/smbd/reply.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 3f9d5c5498..0f2d71eba5 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -416,7 +416,7 @@ void reply_special(char *inbuf)
int msg_type = CVAL(inbuf,0);
int msg_flags = CVAL(inbuf,1);
fstring name1,name2;
- char name_type = 0;
+ char name_type1, name_type2;
/*
* We only really use 4 bytes of the outbuf, but for the smb_setlen
@@ -445,19 +445,19 @@ void reply_special(char *inbuf)
DEBUG(0,("Invalid name length in session request\n"));
return;
}
- name_extract(inbuf,4,name1);
- name_type = name_extract(inbuf,4 + name_len(inbuf + 4),name2);
- DEBUG(2,("netbios connect: name1=%s name2=%s\n",
- name1,name2));
+ name_type1 = name_extract(inbuf,4,name1);
+ name_type2 = name_extract(inbuf,4 + name_len(inbuf + 4),name2);
+ DEBUG(2,("netbios connect: name1=%s0x%x name2=%s0x%x\n",
+ name1, name_type1, name2, name_type2));
set_local_machine_name(name1, True);
set_remote_machine_name(name2, True);
DEBUG(2,("netbios connect: local=%s remote=%s, name type = %x\n",
get_local_machine_name(), get_remote_machine_name(),
- name_type));
+ name_type2));
- if (name_type == 'R') {
+ if (name_type2 == 'R') {
/* We are being asked for a pathworks session ---
no thanks! */
SCVAL(outbuf, 0,0x83);