Don't bother complaining about "no IPv6 interfaces" or "no IPv4 interfaces"
unless debugging is compiled in and enabled. Adapted from ntp-dev. Closes PR bin/23703, by Martin Husemann.
This commit is contained in:
parent
5a8b5dea23
commit
8f443ee26a
12
dist/ntp/ntpd/ntp_io.c
vendored
12
dist/ntp/ntpd/ntp_io.c
vendored
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ntp_io.c,v 1.9 2003/12/04 16:56:01 drochner Exp $ */
|
||||
/* $NetBSD: ntp_io.c,v 1.10 2003/12/20 17:38:19 fredb Exp $ */
|
||||
|
||||
/*
|
||||
* ntp_io.c - input/output routines for ntpd. The socket-opening code
|
||||
@ -433,15 +433,19 @@ create_sockets(
|
||||
|
||||
if (isc_net_probeipv6() == ISC_R_SUCCESS)
|
||||
scan_ipv6 = ISC_TRUE;
|
||||
#ifdef HAVE_IPV6
|
||||
#if defined(HAVE_IPV6) && defined(DEBUG)
|
||||
else
|
||||
netsyslog(LOG_ERR, "no IPv6 interfaces found");
|
||||
if(debug)
|
||||
netsyslog(LOG_ERR, "no IPv6 interfaces found");
|
||||
#endif
|
||||
|
||||
if (isc_net_probeipv4() == ISC_R_SUCCESS)
|
||||
scan_ipv4 = ISC_TRUE;
|
||||
#ifdef DEBUG
|
||||
else
|
||||
netsyslog(LOG_ERR, "no IPv4 interfaces found");
|
||||
if(debug)
|
||||
netsyslog(LOG_ERR, "no IPv4 interfaces found");
|
||||
#endif
|
||||
|
||||
nwilds = create_wildcards(port);
|
||||
idx = nwilds;
|
||||
|
Loading…
Reference in New Issue
Block a user