2 Unix SMB/CIFS implementation.
6 Copyright (C) Andrew Tridgell 2005
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 #define WINSDB_OWNER_LOCAL "0.0.0.0"
24 #define WINSDB_GROUP_ADDRESS "255.255.255.255"
26 #define WINSDB_FLAG_ALLOC_VERSION (1<<0)
27 #define WINSDB_FLAG_TAKE_OWNERSHIP (1<<1)
31 const char *wins_owner;
36 each record in the database contains the following information
38 struct winsdb_record {
39 struct nbt_name *name;
40 enum wrepl_name_type type;
41 enum wrepl_name_state state;
42 enum wrepl_name_node node;
46 const char *wins_owner;
47 struct winsdb_addr **addresses;
49 /* only needed for debugging problems */
50 const char *registered_by;
53 struct winsdb_handle {
54 /* wins server database handle */
55 struct ldb_context *ldb;
59 /* wins server database handle */
60 struct winsdb_handle *wins_db;
62 /* some configuration */
65 * the interval (in secs) till an active record will be marked as RELEASED
67 uint32_t min_renew_interval;
68 uint32_t max_renew_interval;
71 * the interval (in secs) a record remains in RELEASED state,
72 * before it will be marked as TOMBSTONE
73 * (also known as extinction interval)
75 uint32_t tombstone_interval;
79 #include "nbt_server/wins/winsdb_proto.h"