diff options
author | Christopher R. Hertel <crh@samba.org> | 2000-07-19 01:21:30 +0000 |
---|---|---|
committer | Christopher R. Hertel <crh@samba.org> | 2000-07-19 01:21:30 +0000 |
commit | b35f21fb3a19417e2aab82a573ff121a086b224c (patch) | |
tree | b7974de2306b6afbb0bdc20b70689565dd10e6fa /source3/nsswitch | |
parent | ac56d8f848ab6d057cee84ee85945594b65597c4 (diff) | |
download | samba-b35f21fb3a19417e2aab82a573ff121a086b224c.tar.gz samba-b35f21fb3a19417e2aab82a573ff121a086b224c.tar.bz2 samba-b35f21fb3a19417e2aab82a573ff121a086b224c.zip |
First cut toward adding WINS server failover.
*Note: failover doesn't actually work yet!* It's just that the code I'm
adding provides all of the pieces necessary.
I do have one big question. Something that I'll have to ask Jeremy, I'm
thinkin'. In nmbd/nmbd_subnetdb.c the IP of the WINS server is used to
set up the Unicast subnet.
...so what happens if the WINS server changes?
My guess is either:
a) nothing.
b) I'd have to change the unicast subnet entry whenever the WINS server
changes.
Urq.
BTW, the lp_wins_server() function no longer returns the WINS server name
or IP. It returns the list of WINS servers entered in smb.conf. To get
the currently 'live' WINS server, use the wins_srv() function.
Fun, eh?
Chris -)-----
(This used to be commit cc08bdc74f4cd111fdc582ee7babef47ed8a950d)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r-- | source3/nsswitch/wins.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nsswitch/wins.c b/source3/nsswitch/wins.c index f8a05a9fbf..41b71c64bb 100644 --- a/source3/nsswitch/wins.c +++ b/source3/nsswitch/wins.c @@ -56,7 +56,7 @@ struct in_addr *lookup_backend(const char *name, int *count) set_socket_options(fd,"SO_BROADCAST"); - p = lp_wins_server(); + p = wins_srv(); if (p && *p) { ret = name_query(fd,name,0x20,False,True, *interpret_addr2(p), count); goto out; |