summaryrefslogtreecommitdiff
path: root/source/namework.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1997-10-23 22:30:57 +0000
committerJeremy Allison <jra@samba.org>1997-10-23 22:30:57 +0000
commit2c97b33fc0b5ef181dbf51a50cb61074935165bf (patch)
tree940f8da80d7ea3fe4941d7e03ebbfa4f69b82472 /source/namework.c
parent25560cf40b997e400d16fa0c1380e5bc29c015a5 (diff)
downloadsamba-2c97b33fc0b5ef181dbf51a50cb61074935165bf.tar.gz
Big change to make nmbd code more readable/understandable.
Main change is removal of find_name_search() confusion. This has been replaced with find_name_on_subnet() which makes it explicit what is being searched. Also changed wins_subnet to be wins_client_subnet in preparation for splitting the wins subnet into client and server pieces. This is a big nmbd change and I'd appreciate any bug reports. Specific changes follow : asyncdns.c: Removed wins entry from add_netbios_entry(). This is now explicit in the subnet_record parameter. interface.c: iface_bcast(), iface_nmask(), iface_ip() return the default interface if none can be found. Made this behavior explicit - some code in nmbd incorrectly depended upon this (reply_name_status() for instance). nameannounce.c: find_name_search changes to find_name_on_subnet. namebrowse.c: wins_subnet renamed to wins_client_subnet. namedbname.c: find_name_search removed. find_name_on_subnet added. add_netbios_entry - wins parameter removed. namedbsubnet.c: find_req_subnet removed - not explicit enough. nameelect.c: wins_subnet renamed to wins_client_subnet. namepacket.c: listening() simplified. nameresp.c: wins_subnet renamed to wins_client_subnet. nameserv.c: find_name_search moved to find_name_on_subnet. nameserv.h: FIND_XXX -> changed to FIND_SELF_NAME, FIND_ANY_NAME. nameservreply.c: find_name_search moved to find_name_on_subnet. Debug entries changed. nameservresp.c: wins_subnet renamed to wins_client_subnet. namework.c: wins_subnet renamed to wins_client_subnet. nmbd.c: wins parameter removed from add_netbios_entry. nmbsync: wins_subnet renamed to wins_client_subnet. proto.h: The usual. server.c: remove accepted fd from fd_set. Jeremy (jallison@whistle.com)
Diffstat (limited to 'source/namework.c')
-rw-r--r--source/namework.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/namework.c b/source/namework.c
index 2de4a3016f7..540aec5bfea 100644
--- a/source/namework.c
+++ b/source/namework.c
@@ -282,7 +282,7 @@ static void process_master_announce(struct packet_struct *p,char *buf)
if (same_context(dgram)) return;
- if (!wins_subnet)
+ if (!wins_client_subnet)
{
DEBUG(3,("process_master_announce: No wins subnet !\n"));
return;
@@ -294,12 +294,12 @@ static void process_master_announce(struct packet_struct *p,char *buf)
return;
}
- for (work = wins_subnet->workgrouplist; work; work = work->next)
+ for (work = wins_client_subnet->workgrouplist; work; work = work->next)
{
if (AM_MASTER(work) || AM_DOMMST(work))
{
/* merge browse lists with them */
- add_browser_entry(name,0x1d, work->work_group,30,wins_subnet,p->ip,True);
+ add_browser_entry(name,0x1d, work->work_group,30,wins_client_subnet,p->ip,True);
}
}
}