diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-02-16 15:19:49 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:10:44 -0500 |
commit | 12d4b8a95131695724ad3b20c5384a5b2f76f583 (patch) | |
tree | 020eaec246feface50ae95fa48fb38d248aa9477 /source4/nbt_server/winsdb.h | |
parent | a0667e11ae2c92850919a1568ca47fa83d29af6f (diff) | |
download | samba-12d4b8a95131695724ad3b20c5384a5b2f76f583.tar.gz samba-12d4b8a95131695724ad3b20c5384a5b2f76f583.tar.bz2 samba-12d4b8a95131695724ad3b20c5384a5b2f76f583.zip |
r5418: - added version numbers to WINS database records in preparation for adding server side
replication support
- on a WACK registration success, check that the database record
hasn't changed during the WACK processing. If it has, then fail
the registration
(This used to be commit 2acd79b95931b57efae9f7c239bc08dc143f5225)
Diffstat (limited to 'source4/nbt_server/winsdb.h')
-rw-r--r-- | source4/nbt_server/winsdb.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/nbt_server/winsdb.h b/source4/nbt_server/winsdb.h index 0774757ef9..6d395461c6 100644 --- a/source4/nbt_server/winsdb.h +++ b/source4/nbt_server/winsdb.h @@ -35,6 +35,7 @@ struct winsdb_record { time_t expire_time; const char *registered_by; const char **addresses; + uint64_t version; }; struct wins_server { @@ -43,4 +44,9 @@ struct wins_server { uint32_t min_ttl; uint32_t max_ttl; + + /* these are the minimum and maximum record version IDs in the + database. They are needed for replication */ + uint64_t min_version; + uint64_t max_version; }; |