diff options
author | Jean-François Micouleau <jfm@samba.org> | 2002-01-25 22:50:15 +0000 |
---|---|---|
committer | Jean-François Micouleau <jfm@samba.org> | 2002-01-25 22:50:15 +0000 |
commit | 558e4cf0b87f393c2b0a52192c5051c258f281e0 (patch) | |
tree | d52802d7534e4458b9ce4fdd2ace3e42071121c0 /source3/nmbd/nmbd_namelistdb.c | |
parent | 38ac78c3df67d8f187f83abb8fd1bcaeafe4e316 (diff) | |
download | samba-558e4cf0b87f393c2b0a52192c5051c258f281e0.tar.gz samba-558e4cf0b87f393c2b0a52192c5051c258f281e0.tar.bz2 samba-558e4cf0b87f393c2b0a52192c5051c258f281e0.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.
(This used to be commit b902e087d06c32797af19021a7f56895d86d7364)
Diffstat (limited to 'source3/nmbd/nmbd_namelistdb.c')
-rw-r--r-- | source3/nmbd/nmbd_namelistdb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/nmbd/nmbd_namelistdb.c b/source3/nmbd/nmbd_namelistdb.c index aa9589e45a..fba56ef49f 100644 --- a/source3/nmbd/nmbd_namelistdb.c +++ b/source3/nmbd/nmbd_namelistdb.c @@ -213,6 +213,7 @@ struct name_record *add_name_to_subnet( struct subnet_record *subrec, /* Enter the name as active. */ namerec->data.nb_flags = nb_flags | NB_ACTIVE; + namerec->data.wins_flags = WINS_ACTIVE; /* If it's our primary name, flag it as so. */ if( strequal( my_netbios_names[0], name ) ) |