r5411: make network interface selection a bit saner
authorAndrew Tridgell <tridge@samba.org>
Wed, 16 Feb 2005 01:48:11 +0000 (01:48 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:10:43 +0000 (13:10 -0500)
commit4c7c38e930805b84789cfb2472776d6939fc23f6
tree4f7174c83760be60d1b65cd654a624b7b1b19c7c
parente284054f655a430769fb02e4927256495338ff66
r5411: make network interface selection a bit saner

- if we have no configured network interfaces, then don't start nbtd (when I add dynamic
  interface loading this will change to a delay until a network interface comes up)

- choose the best interface by netmask for torture tests that need a
  specific IP (such as the WINS test). Added iface_best_ip() for that.

- if specific interfaces are chosen in smb.conf, then keep that ordering, and
  default to the first one listed
(This used to be commit 4d08c114079ef6d1d10a96195046fe43631aefa2)
source4/lib/netif/interface.c
source4/nbt_server/nbt_server.c
source4/smbd/process_single.c
source4/smbd/service_task.c
source4/torture/nbt/register.c
source4/torture/nbt/wins.c
source4/torture/nbt/winsbench.c