summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1996-07-09 18:11:47 +0000
committerSamba Release Account <samba-bugs@samba.org>1996-07-09 18:11:47 +0000
commit9d59ce1d5715f64105643b01aea8b5b9cba8d5a2 (patch)
tree212a4b2d7cfbacd3d3e522f415aa8396541d9624 /source3
parent9fdb312a69bc966aed8d917843559cb235e17a10 (diff)
downloadsamba-9d59ce1d5715f64105643b01aea8b5b9cba8d5a2.tar.gz
samba-9d59ce1d5715f64105643b01aea8b5b9cba8d5a2.tar.bz2
samba-9d59ce1d5715f64105643b01aea8b5b9cba8d5a2.zip
missed nmbd.c in previous update.
did a make proto lkcl (This used to be commit 4ccc84989efc0875dfec95d38be4a8fe746c8795)
Diffstat (limited to 'source3')
-rw-r--r--source3/include/proto.h28
-rw-r--r--source3/nmbd/nmbd.c4
2 files changed, 7 insertions, 25 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 437a7e25b9..af5ed8bf41 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -251,26 +251,6 @@ void expire_browse_cache(time_t t);
struct browse_cache_record *add_browser_entry(char *name, int type, char *wg,
time_t ttl, struct in_addr ip);
void do_browser_lists(void);
-void remove_old_servers(struct work_record *work, time_t t);
-struct work_record *remove_workgroup(struct subnet_record *d,
- struct work_record *work);
-struct work_record *find_workgroupstruct(struct subnet_record *d,
- fstring name, BOOL add);
-struct subnet_record *find_subnet(struct in_addr bcast_ip);
-void dump_workgroups(void);
-void add_subnet_interfaces(void);
-struct subnet_record *add_subnet_entry(struct in_addr bcast_ip,
- struct in_addr mask_ip,
- char *name, BOOL add, BOOL lmhosts);
-void remove_my_servers(void);
-struct server_record *add_server_entry(struct subnet_record *d,
- struct work_record *work,
- char *name,int servertype,
- int ttl,char *comment,
- BOOL replace);
-void add_my_subnets(char *group);
-void write_browse_list(void);
-void expire_servers(time_t t);
BOOL name_equal(struct nmb_name *n1,struct nmb_name *n2);
BOOL ms_browser_name(char *name, int type);
void remove_name(struct subnet_record *d, struct name_record *n);
@@ -298,13 +278,14 @@ void add_response_record(struct subnet_record *d,
void remove_response_record(struct subnet_record *d,
struct response_record *n);
struct response_record *make_response_queue_record(enum state_type state,
- int id,int fd,
+ int id,uint16 fd,
int quest_type, char *name,int type, int nb_flags, time_t ttl,
BOOL bcast,BOOL recurse,
struct in_addr send_ip, struct in_addr reply_to_ip);
struct response_record *find_response_record(struct subnet_record **d,
uint16 id);
-void remove_old_servers(struct work_record *work, time_t t);
+void remove_old_servers(struct work_record *work, time_t t,
+ BOOL remove_all);
struct server_record *add_server_entry(struct subnet_record *d,
struct work_record *work,
char *name,int servertype,
@@ -320,7 +301,8 @@ struct subnet_record *add_subnet_entry(struct in_addr bcast_ip,
char *name, BOOL add, BOOL lmhosts);
void write_browse_list(void);
struct work_record *remove_workgroup(struct subnet_record *d,
- struct work_record *work);
+ struct work_record *work,
+ BOOL remove_all_servers);
struct work_record *find_workgroupstruct(struct subnet_record *d,
fstring name, BOOL add);
void dump_workgroups(void);
diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c
index 187ef8e7b7..40cb06aad4 100644
--- a/source3/nmbd/nmbd.c
+++ b/source3/nmbd/nmbd.c
@@ -63,16 +63,16 @@ static int sig_term()
DEBUG(0,("Got SIGTERM: going down...\n"));
+ /* write out wins.dat file if samba is a WINS server */
dump_names();
- reload_services(True);
/* remove all samba names, with wins server if necessary. */
remove_my_names();
/* announce all server entries as 0 time-to-live, 0 type */
+ /* XXXX don't care if we never receive a response back... yet */
remove_my_servers();
- /* XXXX don't care if we never receive a response back... yet */
/* XXXX other things: if we are a master browser, force an election? */
exit(0);