summaryrefslogtreecommitdiffstats
path: root/source/namedbsubnet.c
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1997-05-30 23:15:17 +0000
committerSamba Release Account <samba-bugs@samba.org>1997-05-30 23:15:17 +0000
commitfbeaf146c0903f0939d1128af01cff8ea18a2546 (patch)
tree8276a2b91dbce8b4486d3bb1ace6d8c444deb6e1 /source/namedbsubnet.c
parentf08222bd8b86a061c52d22015f946a4737eb47fd (diff)
downloadsamba-fbeaf146c0903f0939d1128af01cff8ea18a2546.tar.gz
samba-fbeaf146c0903f0939d1128af01cff8ea18a2546.tar.xz
samba-fbeaf146c0903f0939d1128af01cff8ea18a2546.zip
namedbname.c: Added 'S' or 'R' flags to wins.dat to aid debugging. Forced all type 1e
names to be added as 255.255.255.255. namedbsubnet.c: Fixed bug I intruduced - register 1e name on WINS subnet also. (thanks to Luke for pointing this one out). Jeremy (jallison@whistle.com)
Diffstat (limited to 'source/namedbsubnet.c')
-rw-r--r--source/namedbsubnet.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source/namedbsubnet.c b/source/namedbsubnet.c
index ab1f133dd4b..7e800930a53 100644
--- a/source/namedbsubnet.c
+++ b/source/namedbsubnet.c
@@ -211,14 +211,11 @@ void add_workgroup_to_subnet( struct subnet_record *d, char *group)
/* 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,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_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",