svn commit: samba r21059 - in branches/SAMBA_4_0/source/nbt_server/wins: .

metze at samba.org metze at samba.org
Tue Jan 30 19:05:41 GMT 2007


Author: metze
Date: 2007-01-30 19:05:40 +0000 (Tue, 30 Jan 2007)
New Revision: 21059

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=21059

Log:
add an option to implement what windows wins server confgure via
HKEY_LOCAL_MACHINE\System\CurrentControlset\Services\WINS\Parameters\Prepend1BTo1CQueries

nbtd:wins_prepend1Bto1Cqueries=no will turn it off

metze
Modified:
   branches/SAMBA_4_0/source/nbt_server/wins/winsserver.c


Changeset:
Modified: branches/SAMBA_4_0/source/nbt_server/wins/winsserver.c
===================================================================
--- branches/SAMBA_4_0/source/nbt_server/wins/winsserver.c	2007-01-30 18:45:19 UTC (rev 21058)
+++ branches/SAMBA_4_0/source/nbt_server/wins/winsserver.c	2007-01-30 19:05:40 UTC (rev 21059)
@@ -583,8 +583,14 @@
 	/*
 	 * w2k3 returns the first address of the 0x1B record as first address
 	 * to a 0x1C query
+	 *
+	 * since Windows 2000 Service Pack 2 there's on option to trigger this behavior:
+	 *
+	 * HKEY_LOCAL_MACHINE\System\CurrentControlset\Services\WINS\Parameters\Prepend1BTo1CQueries
+	 * Typ: Daten REG_DWORD
+	 * Value: 0 = deactivated, 1 = activated
 	 */
-	if (name->type == NBT_NAME_LOGON) {
+	if (name->type == NBT_NAME_LOGON && lp_parm_bool(-1, "nbtd", "wins_prepend1Bto1Cqueries", True)) {
 		struct nbt_name name_1b;
 
 		name_1b = *name;



More information about the samba-cvs mailing list