From 0487eee93a06c8d4d1925660d6d14374c4039d86 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 11 Feb 2005 23:54:37 +0000 Subject: r5346: - a bit more preparation for the WINS server going in - more NBT packet asserts, to ensure that incoming requests have all the elements we depend on - open the WINS database at startup if we are configured as a WINS server - split out the nbtd server reply packet generation code so it can be shared by the WINS server - re-did the logic of what is answered by the WINS server and what by the B node server. It now always tries to answer by the B node, and only "recurses" to the WINS server for names that are not found. (This used to be commit 5613e6b8ad9b32639caf5055f793dbc4d0a2fc19) --- source4/nbt_server/nbt_server.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source4/nbt_server/nbt_server.h') diff --git a/source4/nbt_server/nbt_server.h b/source4/nbt_server/nbt_server.h index 3def958cc4..309c01a639 100644 --- a/source4/nbt_server/nbt_server.h +++ b/source4/nbt_server/nbt_server.h @@ -66,12 +66,15 @@ struct nbtd_server { /* wins client interface - used for registering and refreshing our names with a WINS server */ struct nbtd_interface *wins_interface; + + /* wins server database handle, if configured */ + struct ldb_wrap *wins_db; }; /* check a condition on an incoming packet */ -#define NBT_ASSERT_PACKET(packet, src_address, test) do { \ +#define NBTD_ASSERT_PACKET(packet, src_address, test) do { \ if (!(test)) { \ nbtd_bad_packet(packet, src_address, #test); \ return; \ -- cgit