summaryrefslogtreecommitdiffstats
path: root/source/include/proto.h
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1996-07-04 19:19:26 +0000
committerSamba Release Account <samba-bugs@samba.org>1996-07-04 19:19:26 +0000
commit7719fb06524a66ce5e3f30f3152ddb1e200c97f3 (patch)
tree911610f1e4615b5c42b22668abc347fee3e0ce4c /source/include/proto.h
parenta7be82ee6e56481b907ab3672b214639ec63c9b5 (diff)
downloadsamba-7719fb06524a66ce5e3f30f3152ddb1e200c97f3.tar.gz
samba-7719fb06524a66ce5e3f30f3152ddb1e200c97f3.tar.xz
samba-7719fb06524a66ce5e3f30f3152ddb1e200c97f3.zip
modified become_master() to a state-based system. becoming a master
is now performed in stages: wait for each NetBIOS name to be successfully registered before proceeding to the next stage. tied implicit name registration and release (broadcast method) to the same piece of code as explicit method (via WINS server). created special_browser_name() function that checks __MSBROWSE__ name: this name is ignored by WINS servers apparently. fixed likely incompatibility between refresh_my_names() and add_my_names(). (netbios entries were unlikely to be refreshed). NOTE: none of these changes have been tested. at all. lkcl
Diffstat (limited to 'source/include/proto.h')
-rw-r--r--source/include/proto.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/include/proto.h b/source/include/proto.h
index 3c51382ff79..fa04e284d34 100644
--- a/source/include/proto.h
+++ b/source/include/proto.h
@@ -1,8 +1,5 @@
/* This file is automatically generated with "make proto". DO NOT EDIT */
-
-/*The following definitions come from - */
-
BOOL check_access(int snum);
BOOL allow_access(char *deny_list,char *allow_list,struct from_host *client);
BOOL fromhost(int sock,struct from_host *f);
@@ -273,6 +270,10 @@ void check_master_browser(void);
void browser_gone(char *work_name, struct in_addr ip);
void send_election(struct subnet_record *d, char *group,uint32 criterion,
int timeup,char *name);
+void name_unregister_work(struct subnet_record *d, char *name, int name_type);
+void name_register_work(struct subnet_record *d, char *name, int name_type,
+ int nb_flags, time_t ttl, struct in_addr ip, BOOL bcast);
+void become_master(struct subnet_record *d, struct work_record *work);
void become_nonmaster(struct subnet_record *d, struct work_record *work,
int remove_type);
void run_elections(void);
@@ -309,6 +310,7 @@ BOOL interpret_node_status(struct subnet_record *d,
BOOL send_mailslot_reply(char *mailslot,int fd,char *buf,int len,char *srcname,
char *dstname,int src_type,int dest_type,
struct in_addr dest_ip,struct in_addr src_ip);
+BOOL special_browser_name(char *name, int type);
void remove_name(struct subnet_record *d, struct name_record *n);
void dump_names(void);
void load_netbios_names(void);