[rtems-libbsd commit] mDNSResponder: Fix for update to v765.1.2

Sebastian Huber sebh at rtems.org
Tue Oct 16 11:29:47 UTC 2018


Module:    rtems-libbsd
Branch:    master
Commit:    c464b9e40478aeaf2691141952e553b31990cd8e
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=c464b9e40478aeaf2691141952e553b31990cd8e

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Oct 16 12:54:08 2018 +0200

mDNSResponder: Fix for update to v765.1.2

In the update to v765.1.2 the mDNS_Init() changed the initialization of
m->AutoTargetServices from 1 to 0.  The motivation for this change is
unclear.  This change prevents at least the mDNS hostname lookups.
Revert this change and initialize m->AutoTargetServices to 1 like it was
before the update.

---

 mDNSResponder/mDNSCore/mDNS.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/mDNSResponder/mDNSCore/mDNS.c b/mDNSResponder/mDNSCore/mDNS.c
index 72375d9..6657255 100755
--- a/mDNSResponder/mDNSCore/mDNS.c
+++ b/mDNSResponder/mDNSCore/mDNS.c
@@ -14475,7 +14475,11 @@ mDNSlocal mStatus mDNS_InitStorage(mDNS *const m, mDNS_PlatformSupport *const p,
     m->WABBrowseQueriesCount    = 0;
     m->WABLBrowseQueriesCount   = 0;
     m->WABRegQueriesCount       = 0;
+#ifndef __rtems__
     m->AutoTargetServices       = 0;
+#else /* __rtems__ */
+    m->AutoTargetServices       = 1;
+#endif /* __rtems__ */
 
 #if BONJOUR_ON_DEMAND
     m->NumAllInterfaceRecords   = 0;




More information about the vc mailing list