nameelect.c: Added debug 0 comments so you know when you have become a master/domain master.
nameservreply.c:Stopped SELF names from being remotely released. This still needs work.
nmbsync.c: Added debug 0 comments so you know when a sync is being done.
Jeremy jallison@whistle.com
(This used to be commit
b40d3bede60c8e040ee30c72d605a4950e1a8c8b)
#define STATFS4
#define USE_WAITPID
#define USE_DIRECT
#define STATFS4
#define USE_WAITPID
#define USE_DIRECT
#define SIGNAL_CAST (void (*)())
#define USE_STATVFS
#define USE_WAITPID
#define SIGNAL_CAST (void (*)())
#define USE_STATVFS
#define USE_WAITPID
/* Reset the announce master timer so that we do an announce as soon as possible
now we are a master. */
reset_announce_timer();
/* Reset the announce master timer so that we do an announce as soon as possible
now we are a master. */
reset_announce_timer();
+
+ DEBUG(0,("Samba is now a local master browser for workgroup %s on subnet %s\n",
+ work->work_group, inet_ntoa(d->bcast_ip)));
+
add_server_entry(d,work,myname,work->ServerType,0,
lp_serverstring(),True);
add_server_entry(d,work,myname,work->ServerType,0,
lp_serverstring(),True);
- DEBUG(4,("Samba is now a domain master browser for workgroup %s on subnet %s\n",
+ DEBUG(0,("Samba is now a domain master browser for workgroup %s on subnet %s\n",
work->work_group, inet_ntoa(d->bcast_ip)));
break;
work->work_group, inet_ntoa(d->bcast_ip)));
break;
/* XXXX under what conditions should we reject the removal?? */
/* For now - remove if the names match and the group bit matches. */
/* XXXX under what conditions should we reject the removal?? */
/* For now - remove if the names match and the group bit matches. */
- if (n && (NAME_GROUP(n->ip_flgs[0].nb_flags) == NAME_GROUP(nb_flags)))
+ if (n && (n->source != SELF) && (NAME_GROUP(n->ip_flgs[0].nb_flags) == NAME_GROUP(nb_flags)))
DEBUG(5, ("reply_name_release: Removing name %s on subnet %s\n",
namestr(&nmb->question.question_name), inet_ntoa(d->bcast_ip)));
remove_name(d,n);
DEBUG(5, ("reply_name_release: Removing name %s on subnet %s\n",
namestr(&nmb->question.question_name), inet_ntoa(d->bcast_ip)));
remove_name(d,n);
- DEBUG(4,("sync browse lists with %s for %s %s\n",
+ DEBUG(0,("sync_browse_lists: Sync browse lists with %s for %s %s\n",
work->work_group, name, inet_ntoa(ip)));
strcpy(workgroup,work->work_group);
work->work_group, name, inet_ntoa(ip)));
strcpy(workgroup,work->work_group);