summaryrefslogtreecommitdiff
path: root/external/apache2
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2018-11-19 08:14:28 +0000
committerchristos <christos@NetBSD.org>2018-11-19 08:14:28 +0000
commitdfa57f0415723ea821f689480d852d64b5f0ce12 (patch)
tree3dfef3a388f239f52ce5913ee0457aceafb7ab0c /external/apache2
parent680571ace916c0aecc2384beee4575b7e4756dc5 (diff)
It is not an error if we did not find any IPv4 interfaces. It could
be the case we never have V4 interfaces (in a V6 system) so this is bogus. The code was recently changed to ignore loopback interfaces. If mdnsd was started too early, this means that no interfaces would be found (since interfaces down, with no addresses, or tentative are ignored). I put back the loopback interfaces yesterday to avoid this error, but this seems like the left hand not knowing what the right hand does because whoever removed the loopback interfaces from the list, did not read the 'self discovery' comment and the special code that deals with loopback in this file. Nevertheless, I think it is better to ignore the loopback interfaces in the long run, but it is ok to keep them around since the code is handling them just fine (and works both with and without them).
Diffstat (limited to 'external/apache2')
-rwxr-xr-xexternal/apache2/mDNSResponder/dist/mDNSPosix/mDNSPosix.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/external/apache2/mDNSResponder/dist/mDNSPosix/mDNSPosix.c b/external/apache2/mDNSResponder/dist/mDNSPosix/mDNSPosix.c
index 97f5be3819b..78e90eead86 100755
--- a/external/apache2/mDNSResponder/dist/mDNSPosix/mDNSPosix.c
+++ b/external/apache2/mDNSResponder/dist/mDNSPosix/mDNSPosix.c
@@ -977,7 +977,9 @@ mDNSlocal int SetupInterfaceList(mDNS *const m)
assert(m != NULL);
debugf("SetupInterfaceList");
+#if 0
if (intfList == NULL) err = ENOENT;
+#endif
#if HAVE_IPV6
if (err == 0) /* Link the IPv6 list to the end of the IPv4 list */