summaryrefslogtreecommitdiff
path: root/source4/nbt_server/wins/winsdb.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-10-14 12:50:11 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:42:16 -0500
commit6f0f39cab1e39467bd02ebc04cab24bea5feef33 (patch)
treede3acee70bd26283145204337b30fb1a414b7c78 /source4/nbt_server/wins/winsdb.h
parent4c297bac9dd90f399d065c4d6449b934b3846704 (diff)
downloadsamba-6f0f39cab1e39467bd02ebc04cab24bea5feef33.tar.gz
samba-6f0f39cab1e39467bd02ebc04cab24bea5feef33.tar.bz2
samba-6f0f39cab1e39467bd02ebc04cab24bea5feef33.zip
r11027: r10319@SERNOX: metze | 2005-09-19 18:31:23 +0200
- store the wins owner on the record and the wins owner and expire time on each address - we use "0.0.0.0" to mark entries which are registered at the local wins server - we use this ldif-format: address: 172.31.9.1;winsOwner:0.0.0.0;expireTime:20050923032337.0Z address: 172.31.1.1;winsOwner:172.31.9.202;expireTime:20050923032330.0Z metze (This used to be commit 752025a0e10bfea646784087b5128841ec127a65)
Diffstat (limited to 'source4/nbt_server/wins/winsdb.h')
-rw-r--r--source4/nbt_server/wins/winsdb.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/nbt_server/wins/winsdb.h b/source4/nbt_server/wins/winsdb.h
index 44d4003acc..c775159a18 100644
--- a/source4/nbt_server/wins/winsdb.h
+++ b/source4/nbt_server/wins/winsdb.h
@@ -25,8 +25,13 @@ enum wins_record_state {
WINS_REC_ACTIVE =1
};
+#define WINSDB_OWNER_LOCAL "0.0.0.0"
+#define WINSDB_GROUP_ADDRESS "255.255.255.255"
+
struct winsdb_addr {
const char *address;
+ const char *wins_owner;
+ time_t expire_time;
};
/*
@@ -36,6 +41,7 @@ struct winsdb_record {
struct nbt_name *name;
uint16_t nb_flags;
enum wins_record_state state;
+ const char *wins_owner;
time_t expire_time;
const char *registered_by;
struct winsdb_addr **addresses;