summaryrefslogtreecommitdiff
path: root/source3/nameelect.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1996-07-22 14:32:38 +0000
committerAndrew Tridgell <tridge@samba.org>1996-07-22 14:32:38 +0000
commit234b8c602209d966c5b82148b521d9711e08c4b3 (patch)
tree7e42d2e738a9dc9a7a060083713d94e8ddce1c7f /source3/nameelect.c
parent1c2ab212d96bbd642fd230b117c9940dae5e3767 (diff)
downloadsamba-234b8c602209d966c5b82148b521d9711e08c4b3.tar.gz
samba-234b8c602209d966c5b82148b521d9711e08c4b3.tar.bz2
samba-234b8c602209d966c5b82148b521d9711e08c4b3.zip
removed the remote interfaces stuff.
(This used to be commit 51e5a1a546adf6ba36c7e4c3298c651cff7e15b9)
Diffstat (limited to 'source3/nameelect.c')
-rw-r--r--source3/nameelect.c21
1 files changed, 8 insertions, 13 deletions
diff --git a/source3/nameelect.c b/source3/nameelect.c
index 2b0fa5c0dd..1095f8a7fa 100644
--- a/source3/nameelect.c
+++ b/source3/nameelect.c
@@ -100,7 +100,7 @@ void browser_gone(char *work_name, struct in_addr ip)
/* i don't know about this workgroup, therefore i don't care */
if (!work || !d) return;
- if (strequal(work->work_group, lp_workgroup()) && d->my_interface)
+ if (strequal(work->work_group, lp_workgroup()))
{
DEBUG(2,("Forcing election on %s %s\n",
@@ -112,16 +112,12 @@ void browser_gone(char *work_name, struct in_addr ip)
else
{
/* local interfaces: force an election */
- if (d->my_interface)
- send_election(d, work->work_group, 0, 0, myname);
-
- /* only removes workgroup completely on a local interface or
- if there are no server entries on the remote interface.
- (persistent lmhost entries on a remote interface will stop
- the workgroup being removed. persistent lmhosts entries on
- a local interface _will_ be removed).
+ send_election(d, work->work_group, 0, 0, myname);
+
+ /* only removes workgroup completely on a local interface
+ persistent lmhosts entries on a local interface _will_ be removed).
*/
- remove_workgroup(d, work, d->my_interface);
+ remove_workgroup(d, work,True);
}
}
@@ -300,7 +296,7 @@ void become_master(struct subnet_record *d, struct work_record *work)
work->ServerType |= SV_TYPE_MASTER_BROWSER;
add_server_entry(d,work,myname,work->ServerType,0,ServerComment,True);
- if (d->my_interface && work->serverlist == NULL) /* no servers! */
+ if (work->serverlist == NULL) /* no servers! */
{
/* ask all servers on our local net to announce to us */
announce_request(work, d->bcast_ip);
@@ -568,8 +564,7 @@ void process_election(struct packet_struct *p,char *buf)
for (work = d->workgrouplist; work; work = work->next)
{
if (listening_name(work, &dgram->dest_name) &&
- strequal(work->work_group, lp_workgroup()) &&
- d->my_interface)
+ strequal(work->work_group, lp_workgroup()))
{
if (win_election(work, version,criterion,timeup,name))
{