summaryrefslogtreecommitdiff
path: root/source/namedbname.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/namedbname.c')
-rw-r--r--source/namedbname.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/source/namedbname.c b/source/namedbname.c
index 7d91b6e0451..06e23b0a787 100644
--- a/source/namedbname.c
+++ b/source/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);