added jeremy's patch to return Node Status info type in a Node Status
authorSamba Release Account <samba-bugs@samba.org>
Thu, 13 Mar 1997 19:05:51 +0000 (19:05 +0000)
committerSamba Release Account <samba-bugs@samba.org>
Thu, 13 Mar 1997 19:05:51 +0000 (19:05 +0000)
response, instead of always Name Query.

oops.

lkcl

source/namepacket.c

index e31d4237840e9ec0470dc0a792725457d43b9b83..043e2c02f0fdd3b5c5766fc2284ca47771434b47 100644 (file)
@@ -141,7 +141,7 @@ void initiate_netbios_packet(uint16 *id,
   
   make_nmb_name(&nmb->question.question_name,name,name_type,scope);
   
-  nmb->question.question_type = 0x20;
+  nmb->question.question_type = quest_type == NMB_STATUS ? 0x21 : 0x20;
   nmb->question.question_class = 0x1;
   
   if (quest_type == NMB_REG ||