summaryrefslogtreecommitdiffstats
path: root/source/nmbd/nmbd.c
diff options
context:
space:
mode:
authorJean-François Micouleau <jfm@samba.org>2002-01-25 22:50:15 +0000
committerJean-François Micouleau <jfm@samba.org>2002-01-25 22:50:15 +0000
commitb902e087d06c32797af19021a7f56895d86d7364 (patch)
treed056e3ba6b3e2a82da9b96ebb5abea95eb815d1c /source/nmbd/nmbd.c
parentf0137ac126f782e83ed15d8e905def708cdb6c64 (diff)
downloadsamba-b902e087d06c32797af19021a7f56895d86d7364.tar.gz
samba-b902e087d06c32797af19021a7f56895d86d7364.tar.xz
samba-b902e087d06c32797af19021a7f56895d86d7364.zip
rewrote nmbd's wins backend to use a tdb instead of a flat text file.
Changed the way the wins record are handled in memory. Now they are living much longer with the different states: active, released and tombstone. Also added a version ID, some wins flags and the wins owner ip address to the namrec->data struct, and a function to process messages sent by the wins replication daemon. the initiate_wins_processing() function is not correct, I'll fix it later. J.F.
Diffstat (limited to 'source/nmbd/nmbd.c')
-rw-r--r--source/nmbd/nmbd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/nmbd/nmbd.c b/source/nmbd/nmbd.c
index 57dacc7a05b..a7abdc5da09 100644
--- a/source/nmbd/nmbd.c
+++ b/source/nmbd/nmbd.c
@@ -827,6 +827,7 @@ static void usage(char *pname)
pidfile_create("nmbd");
message_init();
message_register(MSG_FORCE_ELECTION, nmbd_message_election);
+ message_register(MSG_WINS_NEW_ENTRY, nmbd_wins_new_entry);
DEBUG( 3, ( "Opening sockets %d\n", global_nmb_port ) );