Have nmbd check all available interfaces for WINS before failing
commit83cf98f113541acca5a9b4d6ad084d401b64706f
authorAravind Srinivasan <aravind.srinivasan@isilon.com>
Thu, 5 Feb 2009 00:05:36 +0000 (4 16:05 -0800)
committerSteven Danneman <steven.danneman@isilon.com>
Thu, 5 Feb 2009 04:26:50 +0000 (4 20:26 -0800)
treed272a436b2a9e6d084401ca60ee0fb9038195bcf
parent7435b877c7969a72b6b17d3ce4df87c5629882b8
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.
source3/lib/interface.c
source3/nmbd/nmbd_become_dmb.c
source3/nmbd/nmbd_subnetdb.c