From 094f7ce427dba7299c8b08c695812d191e382d06 Mon Sep 17 00:00:00 2001 From: Samba Release Account Date: Mon, 2 Jun 1997 19:51:56 +0000 Subject: nameannounce.c: Made sure recurse flag set correctly. namedbname.c: Made sure wins.dat updated when list changes. Changed to returning 255.255.255.255 when 1e name queried. namepacket.c: Made sure recurse flags set correctly. nameserv.c: Made sure recurse flags set correctly. nameservreply.c: Made send_name_response() static, Made sure recurse flags set correctly. Changed to returning 255.255.255.255 when 1e name queried. proto.h: Removed send_name_response(). Jeremy jallison@whistle.com (This used to be commit 4e9fd24f65971bbbda5f76499e5d14f90eef8038) --- source3/namedbname.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'source3/namedbname.c') diff --git a/source3/namedbname.c b/source3/namedbname.c index 7d91b6e045..06e23b0a78 100644 --- a/source3/namedbname.c +++ b/source3/namedbname.c @@ -36,6 +36,7 @@ extern int DEBUGLEVEL; extern pstring scope; extern struct in_addr ipzero; extern struct in_addr wins_ip; +extern BOOL updatedlists; extern struct subnet_record *subnetlist; @@ -111,6 +112,9 @@ static void add_name(struct subnet_record *d, struct name_record *n) n2->next = n; n->next = NULL; n->prev = n2; + + if(d == wins_subnet) + updatedlists = True; } @@ -133,6 +137,9 @@ void remove_name(struct subnet_record *d, struct name_record *n) if (nlist->prev) nlist->prev->next = nlist->next; free(nlist); } + + if(d == wins_subnet) + updatedlists = True; } @@ -460,12 +467,6 @@ struct name_record *add_netbios_entry(struct subnet_record *d, } } - if(type == 0x1e) - { - /* Add all 1e names as address 255.255.255.255 */ - ip = *interpret_addr2("255.255.255.255"); - } - n = (struct name_record *)malloc(sizeof(*n)); if (!n) return(NULL); -- cgit