summaryrefslogtreecommitdiff
path: root/source3/namedbsubnet.c
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1996-07-10 18:48:49 +0000
committerSamba Release Account <samba-bugs@samba.org>1996-07-10 18:48:49 +0000
commite5a0619c2839d45b00446c3af3f30599f3f3c5fa (patch)
treee4f788fae8109e372f55ecc53a40a19740655cc8 /source3/namedbsubnet.c
parent9d59ce1d5715f64105643b01aea8b5b9cba8d5a2 (diff)
downloadsamba-e5a0619c2839d45b00446c3af3f30599f3f3c5fa.tar.gz
samba-e5a0619c2839d45b00446c3af3f30599f3f3c5fa.tar.bz2
samba-e5a0619c2839d45b00446c3af3f30599f3f3c5fa.zip
updated docs to match code mods from last two or three updates. done
some more commenting of code to match docs. sorted some bugs. ipc BOOL domains was uninitialised. lkcl (This used to be commit cb43ce7bc08fa43a6ce49e0937f13afec5dce67b)
Diffstat (limited to 'source3/namedbsubnet.c')
-rw-r--r--source3/namedbsubnet.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/namedbsubnet.c b/source3/namedbsubnet.c
index 6b187b21bb..dd26592e66 100644
--- a/source3/namedbsubnet.c
+++ b/source3/namedbsubnet.c
@@ -253,13 +253,16 @@ struct subnet_record *add_subnet_entry(struct in_addr bcast_ip,
add_my_name_entry(d,name,0x1e,NB_ACTIVE|NB_GROUP);
add_my_name_entry(d,name,0x0 ,NB_ACTIVE|NB_GROUP);
}
- /* add samba server name to workgroup list */
- if ((strequal(lp_workgroup(), name) && d->my_interface) || lmhosts)
+ /* add samba server name to workgroup list. don't add
+ lmhosts server entries to local interfaces */
+ if ((strequal(lp_workgroup(), name) && d->my_interface) ||
+ (lmhosts && !d->my_interface))
{
add_server_entry(d,w,myname,w->ServerType,0,ServerComment,True);
+ DEBUG(3,("Added server name entry %s at %s\n",
+ name,inet_ntoa(bcast_ip)));
}
- DEBUG(3,("Added domain name entry %s at %s\n", name,inet_ntoa(bcast_ip)));
return d;
}
return NULL;