Have nmbd check all available interfaces for WINS before failing
commitbaa4149a3e944d39864934ab2dd9151f367093b7
authorAravind Srinivasan <aravind.srinivasan@isilon.com>
Thu, 5 Feb 2009 22:46:59 +0000 (5 14:46 -0800)
committerKarolin Seeger <kseeger@samba.org>
Fri, 27 Mar 2009 12:06:39 +0000 (27 13:06 +0100)
tree49ad23be32dcfa73e005008b84f1dded6b0964a0
parentdb2cfcb5ec62dd5b3c36c56a44e2bf84610d2f9e
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 de24718cbc55fa4b16a0370d335005f789e924f7)
source/lib/interface.c
source/nmbd/nmbd_become_dmb.c
source/nmbd/nmbd_subnetdb.c