From 48755e1737a3acf9a7a4bf69f4a37ea9239d11c0 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Tue, 27 Feb 2001 04:20:44 +0000 Subject: [PATCH] Don't log that there are no ipv6 interfaces if built with --disable-ipv6. --- bin/named/interfacemgr.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bin/named/interfacemgr.c b/bin/named/interfacemgr.c index e6c6168028..63d1340e04 100644 --- a/bin/named/interfacemgr.c +++ b/bin/named/interfacemgr.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: interfacemgr.c,v 1.56 2001/01/27 02:08:01 bwelling Exp $ */ +/* $Id: interfacemgr.c,v 1.57 2001/02/27 04:20:44 bwelling Exp $ */ #include @@ -674,12 +674,15 @@ ns_interfacemgr_scan(ns_interfacemgr_t *mgr, isc_boolean_t verbose) { mgr->generation++; /* Increment the generation count. */ - if (isc_net_probeipv6() == ISC_R_SUCCESS) { + if (isc_net_probeipv6() == ISC_R_SUCCESS) do_ipv6(mgr); - } else +#ifdef WANT_IPV6 + else isc_log_write(IFMGR_COMMON_LOGARGS, verbose ? ISC_LOG_INFO : ISC_LOG_DEBUG(1), "no IPv6 interfaces found"); +#endif + if (isc_net_probeipv4() == ISC_R_SUCCESS) do_ipv4(mgr); else