Have nmbd check all available interfaces for WINS before failing
commitde24718cbc55fa4b16a0370d335005f789e924f7
authorAravind Srinivasan <aravind.srinivasan@isilon.com>
Thu, 5 Feb 2009 22:46:59 +0000 (5 14:46 -0800)
committerJeremy Allison <jra@samba.org>
Thu, 5 Feb 2009 22:48:07 +0000 (5 14:48 -0800)
tree5de2017782c908371f8eb45e4399e6b26c44c6c2
parent27f34cb57c4e4299cb43c14e22c5b15053c898ea
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.
source/lib/interface.c
source/nmbd/nmbd_become_dmb.c
source/nmbd/nmbd_subnetdb.c