Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

src: instead of short-circuiting the test, set auto target host ...



details:   https://anonhg.NetBSD.org/src/rev/a1c78a9c4746
branches:  trunk
changeset: 318072:a1c78a9c4746
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Apr 11 18:33:21 2018 +0000
description:
instead of short-circuiting the test, set auto target host on by default.

diffstat:

 external/apache2/mDNSResponder/dist/mDNSCore/mDNS.c |  4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 2ff196728e68 -r a1c78a9c4746 external/apache2/mDNSResponder/dist/mDNSCore/mDNS.c
--- a/external/apache2/mDNSResponder/dist/mDNSCore/mDNS.c       Wed Apr 11 15:25:58 2018 +0000
+++ b/external/apache2/mDNSResponder/dist/mDNSCore/mDNS.c       Wed Apr 11 18:33:21 2018 +0000
@@ -12577,13 +12577,11 @@
     NetworkInterfaceInfo *primary;
     mDNSu8 recordType;
 
-#if 0
     if (m->AutoTargetServices == 0)
     {
         LogInfo("AdvertiseInterface: Returning due to AutoTargetServices zero for %s", set->ifname);
         return;
     }
-#endif
 
     primary = FindFirstAdvertisedInterface(m);
     if (!primary) primary = set; // If no existing advertised interface, this new NetworkInterfaceInfo becomes our new primary
@@ -14479,7 +14477,7 @@
     m->WABBrowseQueriesCount    = 0;
     m->WABLBrowseQueriesCount   = 0;
     m->WABRegQueriesCount       = 0;
-    m->AutoTargetServices       = 0;
+    m->AutoTargetServices       = 1;
 
 #if BONJOUR_ON_DEMAND
     m->NumAllInterfaceRecords   = 0;



Home | Main Index | Thread Index | Old Index