namedbsubnet.c: Added code for returning restricted lists of servers.
authorSamba Release Account <samba-bugs@samba.org>
Tue, 1 Jul 1997 01:23:34 +0000 (01:23 +0000)
committerSamba Release Account <samba-bugs@samba.org>
Tue, 1 Jul 1997 01:23:34 +0000 (01:23 +0000)
source/namedbsubnet.c

index 7e800930a53f90bfbda6ee6b4d8aa42be28f30b4..e3a2ea6e68fce1c64c1bfe1259457758cbaf3c15 100644 (file)
@@ -217,7 +217,8 @@ void add_workgroup_to_subnet( struct subnet_record *d, char *group)
     add_my_name_entry(d,group,0x0 ,nb_type|NB_ACTIVE|NB_GROUP,False);
     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);
+    add_server_entry(d,w,myname,w->ServerType|SV_TYPE_LOCAL_LIST_ONLY,0,
+               lp_serverstring(),True);
     DEBUG(3,("add_workgroup_to_subnet: Added server name entry %s to subnet %s\n",
                 myname, inet_ntoa(d->bcast_ip)));
   }