| 1 | /*
|
|---|
| 2 | Unix SMB/CIFS implementation.
|
|---|
| 3 | Samba wins server helper functions
|
|---|
| 4 | Copyright (C) Andrew Tridgell 1992-2002
|
|---|
| 5 | Copyright (C) Christopher R. Hertel 2000
|
|---|
| 6 | Copyright (C) Tim Potter 2003
|
|---|
| 7 |
|
|---|
| 8 | This program is free software; you can redistribute it and/or modify
|
|---|
| 9 | it under the terms of the GNU General Public License as published by
|
|---|
| 10 | the Free Software Foundation; either version 3 of the License, or
|
|---|
| 11 | (at your option) any later version.
|
|---|
| 12 |
|
|---|
| 13 | This program is distributed in the hope that it will be useful,
|
|---|
| 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 16 | GNU General Public License for more details.
|
|---|
| 17 |
|
|---|
| 18 | You should have received a copy of the GNU General Public License
|
|---|
| 19 | along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|---|
| 20 | */
|
|---|
| 21 |
|
|---|
| 22 | #include "includes.h"
|
|---|
| 23 |
|
|---|
| 24 | /*
|
|---|
| 25 | This is pretty much a complete rewrite of the earlier code. The main
|
|---|
| 26 | aim of the rewrite is to add support for having multiple wins server
|
|---|
| 27 | lists, so Samba can register with multiple groups of wins servers
|
|---|
| 28 | and each group has a failover list of wins servers.
|
|---|
| 29 |
|
|---|
| 30 | Central to the way it all works is the idea of a wins server
|
|---|
| 31 | 'tag'. A wins tag is a label for a group of wins servers. For
|
|---|
| 32 | example if you use
|
|---|
| 33 |
|
|---|
| 34 | wins server = fred:192.168.2.10 mary:192.168.3.199 fred:192.168.2.61
|
|---|
| 35 |
|
|---|
| 36 | then you would have two groups of wins servers, one tagged with the
|
|---|
|
|---|