Have nmbd check all available interfaces for WINS before failing
commit23b5799f6be3966453dcea88965d913513217e2f
authorAravind Srinivasan <aravind.srinivasan@isilon.com>
Thu, 5 Feb 2009 22:46:59 +0000 (5 14:46 -0800)
committerKarolin Seeger <kseeger@samba.org>
Mon, 16 Feb 2009 08:56:56 +0000 (16 09:56 +0100)
tree91329b565f3f38642334972f0906bf2e9e7e1219
parent74f0002d80a0705603310350873396d30d750d2e
Have nmbd check all available interfaces for WINS before failing

When nmbd is acting as WINS, it picks the first interface's IP as WINS
server's IP. If the first interface's IP is zero, we will just quit
(even though we might have other interfaces with valid IPs).

This patch makes nmbd look at all interfaces and pick the first interface
with a valid IP as the WINS server's IP.
(cherry picked from commit d998ee9025f2ad2df73e25c12e35e9218b97147e)
source/lib/interface.c
source/nmbd/nmbd_become_dmb.c
source/nmbd/nmbd_subnetdb.c