The next phase in the WINS rewrite!
authorAndrew Tridgell <tridge@samba.org>
Thu, 27 Jun 2002 14:37:17 +0000 (14:37 +0000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 27 Jun 2002 14:37:17 +0000 (14:37 +0000)
commit313f2c9ff7a513802e4f893324865e70912d419e
treea0eb9a93e558db5358c1bce7a76f85caa49cd877
parent1e36b7e9620f616590dd9f4f44384272b62605ff
The next phase in the WINS rewrite!

We now cope wiith multiple WINS groups and multiple failover servers
for release and refresh as well as registration. We also do the regitrations
in the same fashion as W2K does, where we don't try to register the next
IP in the list for a name until the WINS server has acked the previos IP.
This prevents us flooding the WINS server and also seems to make for much
more reliable multi-homed registration.

I also changed the dead WINS server code to mark pairs of IPs dead,
not individual IPs. The idea is that a WINS server might be dead from
the point of view of one of our interfaces, but not another, so we
need to keep talking to it on one while moving onto a failover WINS
server on the other interface. This copes much better with partial
LAN outages and weird routing tables.
13 files changed:
source/lib/interface.c
source/lib/wins_srv.c
source/libsmb/namequery.c
source/nmbd/nmbd.c
source/nmbd/nmbd_incomingrequests.c
source/nmbd/nmbd_mynames.c
source/nmbd/nmbd_namelistdb.c
source/nmbd/nmbd_nameregister.c
source/nmbd/nmbd_namerelease.c
source/nmbd/nmbd_packets.c
source/nmbd/nmbd_responserecordsdb.c
source/nmbd/nmbd_subnetdb.c
source/nsswitch/winbindd_wins.c