summaryrefslogtreecommitdiff
path: root/source/lib
diff options
context:
space:
mode:
authorKarolin Seeger <kseeger@samba.org>2008-08-27 10:38:35 +0200
committerKarolin Seeger <kseeger@samba.org>2008-08-27 10:38:35 +0200
commit42f7808a92c3b73ffc7f967e9157a970c2316e9b (patch)
tree5159e53e5a42bf60f6ebb8a9d5b6525ca79c6140 /source/lib
parent0682464774e2bdc838e08bdf77b22e6df16980bc (diff)
downloadsamba-42f7808a92c3b73ffc7f967e9157a970c2316e9b.tar.gz
Revert "Fix bug 5697 nmbd spins in reload_interfaces when only loopback has an IPv4 address"
This reverts commit 435c10268bb6987ab7e8206cd6c45bd9961c5632.
Diffstat (limited to 'source/lib')
-rw-r--r--source/lib/interface.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/source/lib/interface.c b/source/lib/interface.c
index 2e7c2706a06..eb0af9ef341 100644
--- a/source/lib/interface.c
+++ b/source/lib/interface.c
@@ -131,18 +131,15 @@ int iface_count(void)
}
/****************************************************************************
- How many non-loopback IPv4 interfaces do we have ?
+ How many interfaces do we have (v4 only) ?
**************************************************************************/
-int iface_count_v4_nl(void)
+int iface_count_v4(void)
{
int ret = 0;
struct interface *i;
for (i=local_interfaces;i;i=i->next) {
- if (is_loopback_addr(&i->ip)) {
- continue;
- }
if (i->ip.ss_family == AF_INET) {
ret++;
}