summaryrefslogtreecommitdiffstats
path: root/source/nameelect.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1996-06-07 03:34:22 +0000
committerAndrew Tridgell <tridge@samba.org>1996-06-07 03:34:22 +0000
commit88b191b48836eeb7937f25b37d0bdd4a2276e5a7 (patch)
tree029183b29f3787bcbb34b61475bd02ad554d30e0 /source/nameelect.c
parent5a0d016b2432da9299d92b33d723534d91c8dcf4 (diff)
downloadsamba-88b191b48836eeb7937f25b37d0bdd4a2276e5a7.tar.gz
samba-88b191b48836eeb7937f25b37d0bdd4a2276e5a7.tar.xz
samba-88b191b48836eeb7937f25b37d0bdd4a2276e5a7.zip
- added predict.c, moving the routines from util.c
- added iface_count() and iface_n_ip() routines so its easy to loop over the local interface list - made readsize a normal loadparm global - check for null w in add_domain_entry() - set the deathtime to time()-1 for doamin entries with servertype==0 This allows servers that are shutting down to be removed - add the 0x1c name at startup if we are a WINS server. Previously we added it only if we were a master - loop over interfaces in add_my_domains(), so people don't have to have a lmhosts file to get lp_workgroup() on all interfaces - set add to True for find_workgroupstruct() in nmbsync, and check for null return - remove some ugly "errno = EBADF" bits. they just confused things.
Diffstat (limited to 'source/nameelect.c')
-rw-r--r--source/nameelect.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/source/nameelect.c b/source/nameelect.c
index a78c8483c5d..765791b80f2 100644
--- a/source/nameelect.c
+++ b/source/nameelect.c
@@ -178,8 +178,6 @@ static void become_master(struct domain_record *d, struct work_record *work)
/* add domain master and domain member names or register with WINS */
add_name_entry(work->work_group,0x1b,NB_ACTIVE );
- add_name_entry(work->work_group,0x1c,NB_ACTIVE|NB_GROUP);
-
work->ServerType |= SV_TYPE_DOMAIN_MASTER;
if (lp_domain_logons())
@@ -215,7 +213,6 @@ void become_nonmaster(struct domain_record *d, struct work_record *work)
work->ElectionCriterion &= ~0x4;
remove_name_entry(work->work_group,0x1b);
- remove_name_entry(work->work_group,0x1c);
remove_name_entry(work->work_group,0x1d);
remove_name_entry(MSBROWSE ,0x01);
}