summaryrefslogtreecommitdiff
path: root/source3/namedbsubnet.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/namedbsubnet.c')
-rw-r--r--source3/namedbsubnet.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/source3/namedbsubnet.c b/source3/namedbsubnet.c
index 393db363d8..ab1f133dd4 100644
--- a/source3/namedbsubnet.c
+++ b/source3/namedbsubnet.c
@@ -209,13 +209,16 @@ void add_workgroup_to_subnet( struct subnet_record *d, char *group)
return;
}
- /* add WORKGROUP(1e) and WORKGROUP(00) entries into name database
- or register with WINS server, if it's our workgroup
+ /* add WORKGROUP(00) entries into name database
+ or register with WINS server, if it's our workgroup.
+ Don't register WORKGROUP(0x1e) on the WINS subnet - this is a broadcast
+ only name.
*/
if (strequal(myworkgroup, group))
{
- add_my_name_entry(d,group,0x1e,nb_type|NB_ACTIVE|NB_GROUP);
- add_my_name_entry(d,group,0x0 ,nb_type|NB_ACTIVE|NB_GROUP);
+ add_my_name_entry(d,group,0x0 ,nb_type|NB_ACTIVE|NB_GROUP,False);
+ if((d != wins_subnet))
+ add_my_name_entry(d,group,0x1e,nb_type|NB_ACTIVE|NB_GROUP,False);
/* add samba server name to workgroup list. */
add_server_entry(d,w,myname,w->ServerType,0,lp_serverstring(),True);
DEBUG(3,("add_workgroup_to_subnet: Added server name entry %s to subnet %s\n",