summaryrefslogtreecommitdiffstats
path: root/source/include/nameserv.h
diff options
context:
space:
mode:
authorChristopher R. Hertel <crh@samba.org>1998-07-24 19:03:11 +0000
committerChristopher R. Hertel <crh@samba.org>1998-07-24 19:03:11 +0000
commitd8b0a2104c05df957f0eb49c21388ec5a4858d98 (patch)
treed64a5cfbeb570581840cc5494f1966d3e081df70 /source/include/nameserv.h
parent16f0ad0c913e2d5b0198409485c56ad4809ca077 (diff)
downloadsamba-d8b0a2104c05df957f0eb49c21388ec5a4858d98.tar.gz
samba-d8b0a2104c05df957f0eb49c21388ec5a4858d98.tar.xz
samba-d8b0a2104c05df957f0eb49c21388ec5a4858d98.zip
Converted the browser database to a ubi_dLinkList. This should reduce code
size, etc. Also did a bit of work to add comments. Chris -)-----
Diffstat (limited to 'source/include/nameserv.h')
-rw-r--r--source/include/nameserv.h19
1 files changed, 8 insertions, 11 deletions
diff --git a/source/include/nameserv.h b/source/include/nameserv.h
index 0ba7acda189..80d9667d1c3 100644
--- a/source/include/nameserv.h
+++ b/source/include/nameserv.h
@@ -189,11 +189,10 @@ struct nmb_data
time_t refresh_time; /* The time the record should be refreshed. */
};
-/* This is the structure used for the local netbios name list. */
+/* This structure represents an entry in a local netbios name list. */
struct name_record
{
ubi_trNode node[1];
-
struct subnet_record *subnet;
struct nmb_name name; /* The netbios name. */
struct nmb_data data; /* The netbios data. */
@@ -201,16 +200,14 @@ struct name_record
/* Browser cache for synchronising browse lists. */
struct browse_cache_record
-{
- struct browse_cache_record *next;
- struct browse_cache_record *prev;
-
- pstring lmb_name;
- pstring work_group;
+ {
+ ubi_dlNode node[1];
+ pstring lmb_name;
+ pstring work_group;
struct in_addr ip;
- time_t sync_time;
- time_t death_time; /* The time the record must be removed. */
-};
+ time_t sync_time;
+ time_t death_time; /* The time the record must be removed. */
+ };
/* This is used to hold the list of servers in my domain, and is
contained within lists of domains. */