Changeset 111789e in rtems-libbsd


Ignore:
Timestamp:
Sep 19, 2018, 6:43:53 AM (8 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
a87e0f4f5c4795f77dc3956c7d1543f90f7d7710, 16fa6a4651faaa77ef72c7e03d285c143d6e54fa
Children:
e36ca10
Parents:
152d81f
git-author:
Sebastian Huber <sebastian.huber@…> (09/19/18 06:43:53)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/20/18 09:23:31)
Message:

mDNSResponder: Update to v561.1.1

The sources can be obtained via:

https://opensource.apple.com/tarballs/mDNSResponder/mDNSResponder-561.1.1.tar.gz

Update #3522.

Location:
mDNSResponder
Files:
1 added
10 edited
1 moved

Legend:

Unmodified
Added
Removed
  • mDNSResponder/Clients/dnsctl.c

    r152d81f r111789e  
    1919
    2020#include <dispatch/dispatch.h>
    21 #include "dns_services.h"
     21#include "dns_services_mdns.h"
    2222
    2323//*************************************************************************************************************
     
    8080                                       DNSXRefDeAlloc(ClientRef);    break;
    8181    }
     82    fflush(NULL);
    8283
    8384}
  • mDNSResponder/Makefile

    r152d81f r111789e  
    1717include $(MAKEFILEPATH)/pb_makefiles/platform.make
    1818
    19 MVERS = "mDNSResponder-544"
     19MVERS = "mDNSResponder-561.1.1"
    2020
    2121DDNSWRITECONFIG = "$(DSTROOT)/Library/Application Support/Bonjour/ddnswriteconfig"
  • mDNSResponder/mDNSMacOSX/BonjourEvents.c

    r152d81f r111789e  
    748748
    749749    CFStringRef cfServiceName = CFStringCreateWithCString(NULL, serviceName, kCFStringEncodingUTF8);
     750    if (cfServiceName == NULL)
     751    {
     752        static int msgCount = 0;
     753        if (msgCount < 1000)
     754        {
     755            asl_log(NULL, NULL, ASL_LEVEL_INFO, "%s:%s Can not create CFString for serviceName %s", sPluginIdentifier, __FUNCTION__, serviceName);
     756            msgCount++;
     757        }
     758        return;
     759    }
    750760
    751761    if (flags & kDNSServiceFlagsAdd)
  • mDNSResponder/mDNSMacOSX/LaunchDaemonInfo.plist

    r152d81f r111789e  
    44<dict>
    55        <key>Label</key>
    6         <string>com.apple.mDNSResponder</string>
     6        <string>com.apple.networking.mDNSResponder</string>
     7    <key>Disabled</key>
     8    <true/>
    79        <key>OnDemand</key>
    810        <false/>
  • mDNSResponder/mDNSMacOSX/Private/dns_services.c

    r152d81f r111789e  
    77 */
    88
    9 #include "dns_services.h"
     9#include "dns_services_mdns.h"
    1010#include "dns_xpc.h"
    1111#include <xpc/xpc.h>
     
    3333static bool LogDebugEnabled()
    3434{
    35     return false;
     35    return true;
    3636}
    3737
  • mDNSResponder/mDNSMacOSX/mDNSMacOSX.c

    r152d81f r111789e  
    18651865    {
    18661866        static int MessageCount = 0;
    1867         // Don't report EHOSTDOWN (i.e. ARP failure), ENETDOWN, or no route to host for unicast destinations
     1867        LogInfo("mDNSPlatformSendUDP -> sendto(%d) failed to send packet on InterfaceID %p %5s/%d to %#a:%d skt %d error %d errno %d (%s) %lu",
     1868                s, InterfaceID, ifa_name, dst->type, dst, mDNSVal16(dstPort), s, err, errno, strerror(errno), (mDNSu32)(m->timenow));
    18681869        if (!mDNSAddressIsAllDNSLinkGroup(dst))
    18691870            if (errno == EHOSTDOWN || errno == ENETDOWN || errno == EHOSTUNREACH || errno == ENETUNREACH) return(mStatus_TransientErr);
  • mDNSResponder/mDNSMacOSX/mDNSResponder.xcodeproj/project.pbxproj

    r152d81f r111789e  
    3535                                03067D6E0C83A39C0022BE1F /* PBXTargetDependency */,
    3636                                84C5B3411665544B00C324A8 /* PBXTargetDependency */,
    37                                 72FB546A166D5FE40090B2D9 /* PBXTargetDependency */,
    3837                        );
    3938                        name = "Build Some";
     
    6968                        buildConfigurationList = FFA5726E0AF191200055A0F1 /* Build configuration list for PBXAggregateTarget "SystemLibrariesDynamic" */;
    7069                        buildPhases = (
    71                                 1F7B473C12B82BFD00868AEF /* ShellScript */,
    7270                        );
    7371                        dependencies = (
     
    187185                2EDC5E740C39EA640092701B /* helper-server.h in Headers */ = {isa = PBXBuildFile; fileRef = 2EDC5E720C39EA640092701B /* helper-server.h */; };
    188186                2EDC5E750C39EA640092701B /* helper-server.h in Headers */ = {isa = PBXBuildFile; fileRef = 2EDC5E720C39EA640092701B /* helper-server.h */; };
     187                3F347CF6185D57CD00367B40 /* base.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 3F347CF5185D57CD00367B40 /* base.xcconfig */; };
    189188                4A7B9E8014FDA25000B84CC1 /* mDNSResponder.plist in CopyFiles */ = {isa = PBXBuildFile; fileRef = 4A7B9E7E14FDA1BB00B84CC1 /* mDNSResponder.plist */; };
    190189                4A7B9E8214FDA26C00B84CC1 /* mDNSResponder.txt in CopyFiles */ = {isa = PBXBuildFile; fileRef = 4A7B9E7C14FDA19F00B84CC1 /* mDNSResponder.txt */; };
     
    193192                4BD2B63B134FE09F002B96D5 /* P2PPacketFilter.h in Headers */ = {isa = PBXBuildFile; fileRef = 4BD2B639134FE09F002B96D5 /* P2PPacketFilter.h */; };
    194193                72FB5467166D5FCA0090B2D9 /* dnsctl.c in Sources */ = {isa = PBXBuildFile; fileRef = 72FB545A166D5F960090B2D9 /* dnsctl.c */; };
    195                 72FB5468166D5FD20090B2D9 /* libdns_services.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 84C5B3351665529800C324A8 /* libdns_services.dylib */; };
     194                8415A6571897109000BDBA26 /* libdns_services.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 8415A6561897109000BDBA26 /* libdns_services.dylib */; };
    196195                8418673E15AB8C2D00BB7F70 /* com.apple.networking.mDNSResponder in CopyFiles */ = {isa = PBXBuildFile; fileRef = 8418673A15AB8B6900BB7F70 /* com.apple.networking.mDNSResponder */; };
    197196                848DA5C7165477E000D2E8B4 /* xpc_services.c in Sources */ = {isa = PBXBuildFile; fileRef = 848DA5C6165477E000D2E8B4 /* xpc_services.c */; };
     
    202201                848DA5D716547F7200D2E8B4 /* dns_xpc.h in Headers */ = {isa = PBXBuildFile; fileRef = 848DA5D516547F7200D2E8B4 /* dns_xpc.h */; };
    203202                84C5B33C166553F100C324A8 /* dns_services.c in Sources */ = {isa = PBXBuildFile; fileRef = 84C5B339166553AF00C324A8 /* dns_services.c */; };
    204                 84C5B33D166553F900C324A8 /* dns_services.h in Headers */ = {isa = PBXBuildFile; fileRef = 84C5B338166553A000C324A8 /* dns_services.h */; settings = {ATTRIBUTES = (Private, ); }; };
     203                84F4C090188F050200D1E1DE /* dns_services_mdns.h in Headers */ = {isa = PBXBuildFile; fileRef = 84F4C08F188F04CF00D1E1DE /* dns_services_mdns.h */; settings = {ATTRIBUTES = (Private, ); }; };
    205204                D284BE530ADD80740027CCDF /* DNSServiceDiscoveryDefines.h in Headers */ = {isa = PBXBuildFile; fileRef = 6575FBFF022EAFBA00000109 /* DNSServiceDiscoveryDefines.h */; };
    206205                D284BE540ADD80740027CCDF /* dnssd_ipc.h in Headers */ = {isa = PBXBuildFile; fileRef = F5E11B5B04A28126019798ED /* dnssd_ipc.h */; };
     
    430429                        remoteInfo = dns_sd.jar;
    431430                };
    432                 72FB5469166D5FE40090B2D9 /* PBXContainerItemProxy */ = {
    433                         isa = PBXContainerItemProxy;
    434                         containerPortal = 08FB7793FE84155DC02AAC07 /* Project object */;
    435                         proxyType = 1;
    436                         remoteGlobalIDString = 72FB545E166D5FB00090B2D9;
    437                         remoteInfo = dnsctl;
    438                 };
    439431                84C5B3401665544B00C324A8 /* PBXContainerItemProxy */ = {
    440432                        isa = PBXContainerItemProxy;
     
    636628                2ECC11A50C4FEC3800CB1885 /* helpermsg-types.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "helpermsg-types.h"; sourceTree = "<group>"; };
    637629                2EDC5E720C39EA640092701B /* helper-server.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = "helper-server.h"; sourceTree = "<group>"; };
     630                3F347CF5185D57CD00367B40 /* base.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = base.xcconfig; sourceTree = "<group>"; };
    638631                4A2E69DD0F5475A3004A87B0 /* uds_daemon.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = uds_daemon.h; path = ../mDNSShared/uds_daemon.h; sourceTree = SOURCE_ROOT; };
    639632                4A3600DF0F34F8CD00453EFB /* DeviceToDeviceManager.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = DeviceToDeviceManager.framework; path = /System/Library/PrivateFrameworks/DeviceToDeviceManager.framework; sourceTree = "<absolute>"; };
     
    664657                7F869685066EE02400D2A2DC /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = /System/Library/Frameworks/Security.framework; sourceTree = "<absolute>"; };
    665658                7FC8F9D406D14E66007E879D /* LegacyNATTraversal.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = LegacyNATTraversal.c; sourceTree = SOURCE_ROOT; };
     659                8415A6561897109000BDBA26 /* libdns_services.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libdns_services.dylib; path = ../../../../../../../usr/lib/libdns_services.dylib; sourceTree = "<group>"; };
    666660                8418673A15AB8B6900BB7F70 /* com.apple.networking.mDNSResponder */ = {isa = PBXFileReference; lastKnownFileType = text; path = com.apple.networking.mDNSResponder; sourceTree = "<group>"; };
    667661                8418673C15AB8B8000BB7F70 /* mDNSResponderLogging.mobileconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = mDNSResponderLogging.mobileconfig; sourceTree = "<group>"; };
     
    669663                848DA5C9165477EB00D2E8B4 /* xpc_services.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = xpc_services.h; path = Private/xpc_services.h; sourceTree = "<group>"; };
    670664                848DA5D516547F7200D2E8B4 /* dns_xpc.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = dns_xpc.h; path = Private/dns_xpc.h; sourceTree = "<group>"; };
    671                 84C5B3351665529800C324A8 /* libdns_services.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = libdns_services.dylib; sourceTree = BUILT_PRODUCTS_DIR; };
    672                 84C5B338166553A000C324A8 /* dns_services.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = dns_services.h; path = Private/dns_services.h; sourceTree = "<group>"; };
     665                84C5B3351665529800C324A8 /* libdns_services_mdns.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = libdns_services_mdns.dylib; sourceTree = BUILT_PRODUCTS_DIR; };
    673666                84C5B339166553AF00C324A8 /* dns_services.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = dns_services.c; path = Private/dns_services.c; sourceTree = "<group>"; };
     667                84F4C08F188F04CF00D1E1DE /* dns_services_mdns.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = dns_services_mdns.h; path = Private/dns_services_mdns.h; sourceTree = "<group>"; };
    674668                D284BE730ADD80740027CCDF /* mDNSResponder */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = mDNSResponder; sourceTree = BUILT_PRODUCTS_DIR; };
    675669                D284BE950ADD80800027CCDF /* mDNSResponder.debug */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = mDNSResponder.debug; sourceTree = BUILT_PRODUCTS_DIR; };
     
    791785                        buildActionMask = 2147483647;
    792786                        files = (
    793                                 72FB5468166D5FD20090B2D9 /* libdns_services.dylib in Frameworks */,
     787                                8415A6571897109000BDBA26 /* libdns_services.dylib in Frameworks */,
    794788                        );
    795789                        runOnlyForDeploymentPostprocessing = 0;
     
    903897                        isa = PBXGroup;
    904898                        children = (
     899                                8415A6561897109000BDBA26 /* libdns_services.dylib */,
     900                                3F347CF5185D57CD00367B40 /* base.xcconfig */,
    905901                                08FB7795FE84155DC02AAC07 /* mDNS Server Sources */,
    906902                                6575FC1F022EB78C00000109 /* Command-Line Clients */,
     
    918914                        isa = PBXGroup;
    919915                        children = (
     916                                84F4C08F188F04CF00D1E1DE /* dns_services_mdns.h */,
    920917                                216D9ACD1720C9F5008066E1 /* VPNService.c */,
    921918                                2120ABD416B71614007089B6 /* CUPolicy.c */,
    922                                 84C5B338166553A000C324A8 /* dns_services.h */,
    923919                                72FB545A166D5F960090B2D9 /* dnsctl.c */,
    924920                                84C5B339166553AF00C324A8 /* dns_services.c */,
     
    10341030                                2141DD24123FFD0F0086D23E /* libdns_sd_debug.a */,
    10351031                                2141DD2A123FFD2C0086D23E /* libdns_sd_profile.a */,
    1036                                 84C5B3351665529800C324A8 /* libdns_services.dylib */,
     1032                                84C5B3351665529800C324A8 /* libdns_services_mdns.dylib */,
    10371033                                72FB545F166D5FB00090B2D9 /* dnsctl */,
    10381034                        );
     
    11691165                        buildActionMask = 2147483647;
    11701166                        files = (
    1171                                 84C5B33D166553F900C324A8 /* dns_services.h in Headers */,
     1167                                84F4C090188F050200D1E1DE /* dns_services_mdns.h in Headers */,
    11721168                        );
    11731169                        runOnlyForDeploymentPostprocessing = 0;
     
    14201416                        name = dns_services;
    14211417                        productName = dns_services;
    1422                         productReference = 84C5B3351665529800C324A8 /* libdns_services.dylib */;
     1418                        productReference = 84C5B3351665529800C324A8 /* libdns_services_mdns.dylib */;
    14231419                        productType = "com.apple.product-type.library.dynamic";
    14241420                };
     
    16851681                        buildActionMask = 2147483647;
    16861682                        files = (
     1683                                3F347CF6185D57CD00367B40 /* base.xcconfig in Resources */,
    16871684                                D284BEEF0ADD80B00027CCDF /* remove_idle.tiff in Resources */,
    16881685                                D284BEF00ADD80B00027CCDF /* add_pressed.tiff in Resources */,
     
    17611758                        runOnlyForDeploymentPostprocessing = 0;
    17621759                        shellPath = /bin/sh;
    1763                         shellScript = "if [ -e \"${SDKROOT}/usr/include/vproc.h\" ]\nthen\nrm -f \"${CONFIGURATION_TEMP_DIR}/vproc.h\"\nelse\ntouch \"${CONFIGURATION_TEMP_DIR}/vproc.h\"\nfi\n\nif [ -e \"${SDKROOT}/usr/lib/libipsec.dylib\" ]\nthen\nrm -f \"${CONFIGURATION_TEMP_DIR}/ipsec_options.h\"\ntouch \"${CONFIGURATION_TEMP_DIR}/ipsec_options.h\"\nrm -f \"${CONFIGURATION_TEMP_DIR}/libipsec.a\"\nelse\necho \"#define MDNS_NO_IPSEC 1\" > ${CONFIGURATION_TEMP_DIR}/ipsec_options.h\ntouch \"${CONFIGURATION_TEMP_DIR}/empty.c\"\nfor i in ${ARCHS}\ndo\nccflags=\"-arch $i $ccflags\"\ndone\ncc ${ccflags} \"${CONFIGURATION_TEMP_DIR}/empty.c\" -c -o \"${CONFIGURATION_TEMP_DIR}/libipsec.a\"\nrm -f \"${CONFIGURATION_TEMP_DIR}/empty.c\"\nfi\n";
    1764                 };
    1765                 1F7B473C12B82BFD00868AEF /* ShellScript */ = {
    1766                         isa = PBXShellScriptBuildPhase;
    1767                         buildActionMask = 2147483647;
    1768                         files = (
    1769                         );
    1770                         inputPaths = (
    1771                         );
    1772                         outputPaths = (
    1773                         );
    1774                         runOnlyForDeploymentPostprocessing = 0;
    1775                         shellPath = /bin/bash;
    1776                         shellScript = "# check if we're building for the simulator and patch the \"id\" of the library (as reported by otool -D) to\n# be just /usr/lib/system/libsystem_sim_dnssd.dylib etc. Also remove the usr directory as it is not needed\n# for simulator\nif [ \"${RC_ProjectName%_Sim}\" != \"${RC_ProjectName}\" ] ; then\n\tif [ -d ${DSTROOT}${SDKROOT}/usr/lib/system ] ; then\n\t\tfor lib in ${DSTROOT}${SDKROOT}/usr/lib/system/*.dylib ; do\n\t\t\tinstall_name_tool -id \"${lib#${DSTROOT}${SDKROOT}}\" \"${lib}\"\n\t\tdone\n\tfi\n\trm -rf $DSTROOT/usr\nfi\n";
     1760                        shellScript = "if [ -e \"${SDKROOT}/usr/local/include/vproc.h\" -o -e \"${SDKROOT}/usr/include/vproc.h\" ]\nthen\nrm -f \"${CONFIGURATION_TEMP_DIR}/vproc.h\"\nelse\ntouch \"${CONFIGURATION_TEMP_DIR}/vproc.h\"\nfi\n\nif [ -e \"${SDKROOT}/usr/lib/libipsec.dylib\" ]\nthen\nrm -f \"${CONFIGURATION_TEMP_DIR}/ipsec_options.h\"\ntouch \"${CONFIGURATION_TEMP_DIR}/ipsec_options.h\"\nrm -f \"${CONFIGURATION_TEMP_DIR}/libipsec.a\"\nelse\necho \"#define MDNS_NO_IPSEC 1\" > ${CONFIGURATION_TEMP_DIR}/ipsec_options.h\ntouch \"${CONFIGURATION_TEMP_DIR}/empty.c\"\nfor i in ${ARCHS}\ndo\nccflags=\"-arch $i $ccflags\"\ndone\ncc ${ccflags} \"${CONFIGURATION_TEMP_DIR}/empty.c\" -c -o \"${CONFIGURATION_TEMP_DIR}/libipsec.a\"\nrm -f \"${CONFIGURATION_TEMP_DIR}/empty.c\"\nfi\n";
    17771761                };
    17781762                2130256B12400DE600AC839F /* ShellScript */ = {
     
    17871771                        runOnlyForDeploymentPostprocessing = 1;
    17881772                        shellPath = /bin/sh;
    1789                         shellScript = "#if we are building for simulator, change the installation path\nif [ \"${RC_ProjectName%_Sim}\" != \"${RC_ProjectName}\" ] ; then\n\tDSTROOT=${DSTROOT}${SDKROOT}\nfi\nmkdir -p \"$DSTROOT/usr/include\"\nsed 's/\\(^#define _DNS_SD_LIBDISPATCH \\)0$/\\1 1/' \"$SRCROOT/../mDNSShared/dns_sd.h\" > \"$DSTROOT/usr/include/dns_sd.h\"";
     1773                        shellScript = "DSTROOT=${DSTROOT}${INSTALL_PATH_PREFIX}\n\nmkdir -p \"$DSTROOT/usr/include\"\nsed 's/\\(^#define _DNS_SD_LIBDISPATCH \\)0$/\\1 1/' \"$SRCROOT/../mDNSShared/dns_sd.h\" > \"$DSTROOT/usr/include/dns_sd.h\"";
    17901774                };
    17911775                21DE714D115831CB00DD4BD1 /* ShellScript */ = {
     
    18001784                        runOnlyForDeploymentPostprocessing = 1;
    18011785                        shellPath = /bin/sh;
    1802                         shellScript = "#if we are building for simulator, change the installation path\nif [ \"${RC_ProjectName%_Sim}\" != \"${RC_ProjectName}\" ] ; then\n\tDSTROOT=${DSTROOT}${SDKROOT}\nfi\nmkdir -p \"$DSTROOT/usr/include\"\nsed 's/\\(^#define _DNS_SD_LIBDISPATCH \\)0$/\\1 1/' \"$SRCROOT/../mDNSShared/dns_sd.h\" > \"$DSTROOT/usr/include/dns_sd.h\"";
     1786                        shellScript = "DSTROOT=${DSTROOT}${INSTALL_PATH_PREFIX}\nmkdir -p \"$DSTROOT/usr/include\"\nsed 's/\\(^#define _DNS_SD_LIBDISPATCH \\)0$/\\1 1/' \"$SRCROOT/../mDNSShared/dns_sd.h\" > \"$DSTROOT/usr/include/dns_sd.h\"";
    18031787                };
    18041788                4A4EE3A413CB8E82005C624B /* Build yacc file into derived source files */ = {
     
    18261810                        runOnlyForDeploymentPostprocessing = 0;
    18271811                        shellPath = /bin/sh;
    1828                         shellScript = "if [ -e \"${SDKROOT}/usr/local/include/dnsinfo.h\" ]\nthen\nrm -f \"${CONFIGURATION_TEMP_DIR}/dnsinfo.h\"\nrm -f \"${CONFIGURATION_TEMP_DIR}/libdnsinfo.a\"\nelse\necho \"#define MDNS_NO_DNSINFO 1\" > ${CONFIGURATION_TEMP_DIR}/dnsinfo.h\ntouch \"${CONFIGURATION_TEMP_DIR}/empty.c\"\nfor i in ${ARCHS}\ndo\nccflags=\"-arch $i $ccflags\"\ndone\ncc ${ccflags} \"${CONFIGURATION_TEMP_DIR}/empty.c\" -c -o \"${CONFIGURATION_TEMP_DIR}/libdnsinfo.a\"\nrm -f \"${CONFIGURATION_TEMP_DIR}/empty.c\"\nfi\n\nif [ -e \"${SDKROOT}/usr/include/sandbox.h\" ]\nthen\nrm -f \"${CONFIGURATION_TEMP_DIR}/sandbox.h\"\nelse\necho \"#define MDNS_NO_SANDBOX 1\" > \"${CONFIGURATION_TEMP_DIR}/sandbox.h\"\nfi\n\nif [ -e \"${SDKROOT}/usr/include/vproc.h\" ]\nthen\nrm -f \"${CONFIGURATION_TEMP_DIR}/vproc.h\"\nelse\ntouch \"${CONFIGURATION_TEMP_DIR}/vproc.h\"\nfi\n\nif [ -e \"${SDKROOT}/System/Library/Frameworks/IOKit.framework/PrivateHeaders/pwr_mgt/IOPMLibPrivate.h\" ]\nthen\nrm -rf \"${CONFIGURATION_TEMP_DIR}/IOKit\"\nelse\nmkdir -p \"${CONFIGURATION_TEMP_DIR}/IOKit/pwr_mgt\"\ntouch \"${CONFIGURATION_TEMP_DIR}/IOKit/pwr_mgt/IOPMLibPrivate.h\"\nfi\n\nif [ -e \"${SDKROOT}/System/Library/PrivateFrameworks/DeviceToDeviceManager.framework/Headers/DeviceToDeviceManager.h\" ]\nthen\nrm -rf \"${CONFIGURATION_TEMP_DIR}/DeviceToDeviceManager\"\nelse\nmkdir -p \"${CONFIGURATION_TEMP_DIR}/DeviceToDeviceManager\"\necho \"#define NO_D2D 1\" > \"${CONFIGURATION_TEMP_DIR}/DeviceToDeviceManager/DeviceToDeviceManager.h\"\nfi\n\nif [ -e \"${SDKROOT}/System/Library/PrivateFrameworks/WebFilterDNS.framework/Headers/WebFilterDNS.h\" ]\nthen\nrm -rf \"${CONFIGURATION_TEMP_DIR}/WebFilterDNS\"\nelse\nmkdir -p \"${CONFIGURATION_TEMP_DIR}/WebFilterDNS\"\necho \"#define NO_WCF 1\" > \"${CONFIGURATION_TEMP_DIR}/WebFilterDNS/WebFilterDNS.h\"\nfi\n\nif [ -e \"${SDKROOT}/usr/local/include/AWACS.h\" ]\nthen\nrm -f \"${CONFIGURATION_TEMP_DIR}/AWACS.h\"\nrm -f \"${CONFIGURATION_TEMP_DIR}/libAWACS.a\"\nelse\necho \"#define NO_AWACS 1\" > \"${CONFIGURATION_TEMP_DIR}/AWACS.h\"\ntouch \"${CONFIGURATION_TEMP_DIR}/AWACSempty.c\"\nfor i in ${ARCHS}\ndo\nccflags=\"-arch $i $ccflags\"\ndone\ncc ${ccflags} \"${CONFIGURATION_TEMP_DIR}/AWACSempty.c\" -c -o \"${CONFIGURATION_TEMP_DIR}/libAWACS.a\"\nrm -f \"${CONFIGURATION_TEMP_DIR}/AWACSempty.c\"\nfi\n";
     1812                        shellScript = "if [ -e \"${SDKROOT}/usr/local/include/dnsinfo.h\" ]\nthen\nrm -f \"${CONFIGURATION_TEMP_DIR}/dnsinfo.h\"\nrm -f \"${CONFIGURATION_TEMP_DIR}/libdnsinfo.a\"\nelse\necho \"#define MDNS_NO_DNSINFO 1\" > ${CONFIGURATION_TEMP_DIR}/dnsinfo.h\ntouch \"${CONFIGURATION_TEMP_DIR}/empty.c\"\nfor i in ${ARCHS}\ndo\nccflags=\"-arch $i $ccflags\"\ndone\ncc ${ccflags} \"${CONFIGURATION_TEMP_DIR}/empty.c\" -c -o \"${CONFIGURATION_TEMP_DIR}/libdnsinfo.a\"\nrm -f \"${CONFIGURATION_TEMP_DIR}/empty.c\"\nfi\n\nif [ -e \"${SDKROOT}/usr/include/sandbox.h\" ]\nthen\nrm -f \"${CONFIGURATION_TEMP_DIR}/sandbox.h\"\nelse\necho \"#define MDNS_NO_SANDBOX 1\" > \"${CONFIGURATION_TEMP_DIR}/sandbox.h\"\nfi\n\nif [ -e \"${SDKROOT}/usr/local/include/vproc.h\" -o -e \"${SDKROOT}/usr/include/vproc.h\" ]\nthen\nrm -f \"${CONFIGURATION_TEMP_DIR}/vproc.h\"\nelse\ntouch \"${CONFIGURATION_TEMP_DIR}/vproc.h\"\nfi\n\nif [ -e \"${SDKROOT}/System/Library/Frameworks/IOKit.framework/PrivateHeaders/pwr_mgt/IOPMLibPrivate.h\" ]\nthen\nrm -rf \"${CONFIGURATION_TEMP_DIR}/IOKit\"\nelse\nmkdir -p \"${CONFIGURATION_TEMP_DIR}/IOKit/pwr_mgt\"\ntouch \"${CONFIGURATION_TEMP_DIR}/IOKit/pwr_mgt/IOPMLibPrivate.h\"\nfi\n\nif [ -e \"${SDKROOT}/System/Library/PrivateFrameworks/DeviceToDeviceManager.framework/Headers/DeviceToDeviceManager.h\" ]\nthen\nrm -rf \"${CONFIGURATION_TEMP_DIR}/DeviceToDeviceManager\"\nelse\nmkdir -p \"${CONFIGURATION_TEMP_DIR}/DeviceToDeviceManager\"\necho \"#define NO_D2D 1\" > \"${CONFIGURATION_TEMP_DIR}/DeviceToDeviceManager/DeviceToDeviceManager.h\"\nfi\n\nif [ -e \"${SDKROOT}/System/Library/PrivateFrameworks/WebFilterDNS.framework/Headers/WebFilterDNS.h\" ]\nthen\nrm -rf \"${CONFIGURATION_TEMP_DIR}/WebFilterDNS\"\nelse\nmkdir -p \"${CONFIGURATION_TEMP_DIR}/WebFilterDNS\"\necho \"#define NO_WCF 1\" > \"${CONFIGURATION_TEMP_DIR}/WebFilterDNS/WebFilterDNS.h\"\nfi\n\nif [ -e \"${SDKROOT}/usr/local/include/AWACS.h\" ]\nthen\nrm -f \"${CONFIGURATION_TEMP_DIR}/AWACS.h\"\nrm -f \"${CONFIGURATION_TEMP_DIR}/libAWACS.a\"\nelse\necho \"#define NO_AWACS 1\" > \"${CONFIGURATION_TEMP_DIR}/AWACS.h\"\ntouch \"${CONFIGURATION_TEMP_DIR}/AWACSempty.c\"\nfor i in ${ARCHS}\ndo\nccflags=\"-arch $i $ccflags\"\ndone\ncc ${ccflags} \"${CONFIGURATION_TEMP_DIR}/AWACSempty.c\" -c -o \"${CONFIGURATION_TEMP_DIR}/libAWACS.a\"\nrm -f \"${CONFIGURATION_TEMP_DIR}/AWACSempty.c\"\nfi\n";
    18291813                };
    18301814                D284BE6C0ADD80740027CCDF /* ShellScript */ = {
     
    18441828                        runOnlyForDeploymentPostprocessing = 0;
    18451829                        shellPath = /bin/sh;
    1846                         shellScript = "if [ -e \"${SDKROOT}/usr/local/include/dnsinfo.h\" ]\nthen\nrm -f \"${CONFIGURATION_TEMP_DIR}/dnsinfo.h\"\nrm -f \"${CONFIGURATION_TEMP_DIR}/libdnsinfo.a\"\nelse\necho \"#define MDNS_NO_DNSINFO 1\" > ${CONFIGURATION_TEMP_DIR}/dnsinfo.h\ntouch \"${CONFIGURATION_TEMP_DIR}/empty.c\"\nfor i in ${ARCHS}\ndo\nccflags=\"-arch $i $ccflags\"\ndone\ncc ${ccflags} \"${CONFIGURATION_TEMP_DIR}/empty.c\" -c -o \"${CONFIGURATION_TEMP_DIR}/libdnsinfo.a\"\nrm -f \"${CONFIGURATION_TEMP_DIR}/empty.c\"\nfi\n\nif [ -e \"${SDKROOT}/usr/include/sandbox.h\" ]\nthen\nrm -f \"${CONFIGURATION_TEMP_DIR}/sandbox.h\"\nelse\necho \"#define MDNS_NO_SANDBOX 1\" > \"${CONFIGURATION_TEMP_DIR}/sandbox.h\"\nfi\n\nif [ -e \"${SDKROOT}/usr/include/vproc.h\" ]\nthen\nrm -f \"${CONFIGURATION_TEMP_DIR}/vproc.h\"\nelse\ntouch \"${CONFIGURATION_TEMP_DIR}/vproc.h\"\nfi\n\nif [ -e \"${SDKROOT}/System/Library/Frameworks/IOKit.framework/PrivateHeaders/pwr_mgt/IOPMLibPrivate.h\" ]\nthen\nrm -rf \"${CONFIGURATION_TEMP_DIR}/IOKit\"\nelse\nmkdir -p \"${CONFIGURATION_TEMP_DIR}/IOKit/pwr_mgt\"\ntouch \"${CONFIGURATION_TEMP_DIR}/IOKit/pwr_mgt/IOPMLibPrivate.h\"\nfi\n\nif [ -e \"${SDKROOT}/System/Library/PrivateFrameworks/DeviceToDeviceManager.framework/Headers/DeviceToDeviceManager.h\" ]\nthen\nrm -rf \"${CONFIGURATION_TEMP_DIR}/DeviceToDeviceManager\"\nelse\nmkdir -p \"${CONFIGURATION_TEMP_DIR}/DeviceToDeviceManager\"\necho \"#define NO_D2D 1\" > \"${CONFIGURATION_TEMP_DIR}/DeviceToDeviceManager/DeviceToDeviceManager.h\"\nfi\n\nif [ -e \"${SDKROOT}/System/Library/PrivateFrameworks/WebFilterDNS.framework/Headers/WebFilterDNS.h\" ]\nthen\nrm -rf \"${CONFIGURATION_TEMP_DIR}/WebFilterDNS\"\nelse\nmkdir -p \"${CONFIGURATION_TEMP_DIR}/WebFilterDNS\"\necho \"#define NO_WCF 1\" > \"${CONFIGURATION_TEMP_DIR}/WebFilterDNS/WebFilterDNS.h\"\nfi\n\nif [ -e \"${SDKROOT}/usr/local/include/AWACS.h\" ]\nthen\nrm -f \"${CONFIGURATION_TEMP_DIR}/AWACS.h\"\nrm -f \"${CONFIGURATION_TEMP_DIR}/libAWACS.a\"\nelse\necho \"#define NO_AWACS 1\" > \"${CONFIGURATION_TEMP_DIR}/AWACS.h\"\ntouch \"${CONFIGURATION_TEMP_DIR}/AWACSempty.c\"\nfor i in ${ARCHS}\ndo\nccflags=\"-arch $i $ccflags\"\ndone\ncc ${ccflags} \"${CONFIGURATION_TEMP_DIR}/AWACSempty.c\" -c -o \"${CONFIGURATION_TEMP_DIR}/libAWACS.a\"\nrm -f \"${CONFIGURATION_TEMP_DIR}/AWACSempty.c\"\nfi";
     1830                        shellScript = "if [ -e \"${SDKROOT}/usr/local/include/dnsinfo.h\" ]\nthen\nrm -f \"${CONFIGURATION_TEMP_DIR}/dnsinfo.h\"\nrm -f \"${CONFIGURATION_TEMP_DIR}/libdnsinfo.a\"\nelse\necho \"#define MDNS_NO_DNSINFO 1\" > ${CONFIGURATION_TEMP_DIR}/dnsinfo.h\ntouch \"${CONFIGURATION_TEMP_DIR}/empty.c\"\nfor i in ${ARCHS}\ndo\nccflags=\"-arch $i $ccflags\"\ndone\ncc ${ccflags} \"${CONFIGURATION_TEMP_DIR}/empty.c\" -c -o \"${CONFIGURATION_TEMP_DIR}/libdnsinfo.a\"\nrm -f \"${CONFIGURATION_TEMP_DIR}/empty.c\"\nfi\n\nif [ -e \"${SDKROOT}/usr/include/sandbox.h\" ]\nthen\nrm -f \"${CONFIGURATION_TEMP_DIR}/sandbox.h\"\nelse\necho \"#define MDNS_NO_SANDBOX 1\" > \"${CONFIGURATION_TEMP_DIR}/sandbox.h\"\nfi\n\nif [ -e \"${SDKROOT}/usr/local/include/vproc.h\" -o -e \"${SDKROOT}/usr/include/vproc.h\" ]\nthen\nrm -f \"${CONFIGURATION_TEMP_DIR}/vproc.h\"\nelse\ntouch \"${CONFIGURATION_TEMP_DIR}/vproc.h\"\nfi\n\nif [ -e \"${SDKROOT}/System/Library/Frameworks/IOKit.framework/PrivateHeaders/pwr_mgt/IOPMLibPrivate.h\" ]\nthen\nrm -rf \"${CONFIGURATION_TEMP_DIR}/IOKit\"\nelse\nmkdir -p \"${CONFIGURATION_TEMP_DIR}/IOKit/pwr_mgt\"\ntouch \"${CONFIGURATION_TEMP_DIR}/IOKit/pwr_mgt/IOPMLibPrivate.h\"\nfi\n\nif [ -e \"${SDKROOT}/System/Library/PrivateFrameworks/DeviceToDeviceManager.framework/Headers/DeviceToDeviceManager.h\" ]\nthen\nrm -rf \"${CONFIGURATION_TEMP_DIR}/DeviceToDeviceManager\"\nelse\nmkdir -p \"${CONFIGURATION_TEMP_DIR}/DeviceToDeviceManager\"\necho \"#define NO_D2D 1\" > \"${CONFIGURATION_TEMP_DIR}/DeviceToDeviceManager/DeviceToDeviceManager.h\"\nfi\n\nif [ -e \"${SDKROOT}/System/Library/PrivateFrameworks/WebFilterDNS.framework/Headers/WebFilterDNS.h\" ]\nthen\nrm -rf \"${CONFIGURATION_TEMP_DIR}/WebFilterDNS\"\nelse\nmkdir -p \"${CONFIGURATION_TEMP_DIR}/WebFilterDNS\"\necho \"#define NO_WCF 1\" > \"${CONFIGURATION_TEMP_DIR}/WebFilterDNS/WebFilterDNS.h\"\nfi\n\nif [ -e \"${SDKROOT}/usr/local/include/AWACS.h\" ]\nthen\nrm -f \"${CONFIGURATION_TEMP_DIR}/AWACS.h\"\nrm -f \"${CONFIGURATION_TEMP_DIR}/libAWACS.a\"\nelse\necho \"#define NO_AWACS 1\" > \"${CONFIGURATION_TEMP_DIR}/AWACS.h\"\ntouch \"${CONFIGURATION_TEMP_DIR}/AWACSempty.c\"\nfor i in ${ARCHS}\ndo\nccflags=\"-arch $i $ccflags\"\ndone\ncc ${ccflags} \"${CONFIGURATION_TEMP_DIR}/AWACSempty.c\" -c -o \"${CONFIGURATION_TEMP_DIR}/libAWACS.a\"\nrm -f \"${CONFIGURATION_TEMP_DIR}/AWACSempty.c\"\nfi";
    18471831                };
    18481832                FF045B6A0C7E4AA600448140 /* ShellScript */ = {
     
    18571841                        runOnlyForDeploymentPostprocessing = 1;
    18581842                        shellPath = /bin/sh;
    1859                         shellScript = "# Install plists to tell launchd how to start mDNSResponder and mDNSResponderHelper\nmkdir -p ${DSTROOT}${SYSTEM_LIBRARY_DIR}/LaunchDaemons\n\nif [ \"${MACOSX_DEPLOYMENT_TARGET}\" == \"10.4\" ] ; then\ncp ${SRCROOT}/LaunchDaemonInfo-Tiger.plist        ${DSTROOT}${SYSTEM_LIBRARY_DIR}/LaunchDaemons/com.apple.mDNSResponder.plist\ncp ${SRCROOT}/LaunchDaemonInfo-Tiger.helper.plist ${DSTROOT}${SYSTEM_LIBRARY_DIR}/LaunchDaemons/com.apple.mDNSResponderHelper.plist\nelse\ncp ${SRCROOT}/LaunchDaemonInfo.plist              ${DSTROOT}${SYSTEM_LIBRARY_DIR}/LaunchDaemons/com.apple.mDNSResponder.plist\ncp ${SRCROOT}/LaunchDaemonInfo.helper.plist       ${DSTROOT}${SYSTEM_LIBRARY_DIR}/LaunchDaemons/com.apple.mDNSResponderHelper.plist\nfi\n\nif [ ! -z \"${IPHONEOS_DEPLOYMENT_TARGET}\" ] ; then\nplutil -convert binary1 ${DSTROOT}${SYSTEM_LIBRARY_DIR}/LaunchDaemons/com.apple.mDNSResponder.plist\nplutil -convert binary1 ${DSTROOT}${SYSTEM_LIBRARY_DIR}/LaunchDaemons/com.apple.mDNSResponderHelper.plist\nfi\n";
     1843                        shellScript = "# Install plists to tell launchd how to start mDNSResponder and mDNSResponderHelper\nmkdir -p ${DSTROOT}${SYSTEM_LIBRARY_DIR}/LaunchDaemons\n\nif [ ! -z \"${IPHONEOS_DEPLOYMENT_TARGET}\" ] ; then\nplutil -convert binary1 ${DSTROOT}${SYSTEM_LIBRARY_DIR}/LaunchDaemons/com.apple.mDNSResponder.plist\nplutil -convert binary1 ${DSTROOT}${SYSTEM_LIBRARY_DIR}/LaunchDaemons/com.apple.mDNSResponderHelper.plist\nfi\n";
    18601844                };
    18611845                FF37FAAD0BC581780044A5CF /* ShellScript */ = {
     
    21772161                        targetProxy = 4AE471690EAFF83800A6C5AD /* PBXContainerItemProxy */;
    21782162                };
    2179                 72FB546A166D5FE40090B2D9 /* PBXTargetDependency */ = {
    2180                         isa = PBXTargetDependency;
    2181                         target = 72FB545E166D5FB00090B2D9 /* dnsctl */;
    2182                         targetProxy = 72FB5469166D5FE40090B2D9 /* PBXContainerItemProxy */;
    2183                 };
    21842163                84C5B3411665544B00C324A8 /* PBXTargetDependency */ = {
    21852164                        isa = PBXTargetDependency;
     
    22722251                                GCC_MODEL_TUNING = G5;
    22732252                                INFOPLIST_FILE = "BonjourEvents-Info.plist";
    2274                                 INSTALL_PATH = /System/Library/UserEventPlugins/;
     2253                                INSTALL_PATH_ACTUAL = /System/Library/UserEventPlugins/;
    22752254                                PREBINDING = NO;
    22762255                                PRODUCT_NAME = BonjourEvents;
     
    23152294                                INSTALLHDRS_COPY_PHASE = YES;
    23162295                                INSTALLHDRS_SCRIPT_PHASE = YES;
    2317                                 INSTALL_PATH = /usr/local/lib/system;
     2296                                INSTALL_PATH_ACTUAL = /usr/local/lib/system;
    23182297                                PREBINDING = NO;
    23192298                                PRODUCT_NAME = dns_sd;
     2299                                "SKIP_INSTALL[sdk=iphonesimulator*]" = YES;
    23202300                        };
    23212301                        name = Development;
     
    23342314                                );
    23352315                                HEADER_SEARCH_PATHS = "$(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders/";
    2336                                 INSTALL_PATH = /usr/local/lib/system;
     2316                                INSTALL_PATH_ACTUAL = /usr/local/lib/system;
    23372317                                PREBINDING = NO;
    23382318                                PRODUCT_NAME = dns_sd_debug;
     2319                                "SKIP_INSTALL[sdk=iphonesimulator*]" = YES;
    23392320                        };
    23402321                        name = Development;
     
    23532334                                );
    23542335                                HEADER_SEARCH_PATHS = "$(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders/";
    2355                                 INSTALL_PATH = /usr/local/lib/system;
     2336                                INSTALL_PATH_ACTUAL = /usr/local/lib/system;
    23562337                                PREBINDING = NO;
    23572338                                PRODUCT_NAME = dns_sd_profile;
     2339                                "SKIP_INSTALL[sdk=iphonesimulator*]" = YES;
    23582340                        };
    23592341                        name = Development;
     
    23682350                                COPY_PHASE_STRIP = NO;
    23692351                                GCC_DYNAMIC_NO_PIC = NO;
     2352                                GCC_TREAT_WARNINGS_AS_ERRORS = NO;
    23702353                                GCC_WARN_CHECK_SWITCH_STATEMENTS = NO;
    23712354                                HEADER_SEARCH_PATHS = (
    23722355                                        "${CONFIGURATION_TEMP_DIR}",
    23732356                                        "$(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders",
    2374                                 );
    2375                                 INSTALL_PATH = /usr/sbin;
     2357                                        "$(SDKROOT)/usr/local/include",
     2358                                );
     2359                                INSTALL_PATH = "";
     2360                                "INSTALL_PATH[sdk=macosx*]" = "";
     2361                                INSTALL_PATH_ACTUAL = /usr/sbin;
    23762362                                LD_MAP_FILE_PATH = "$(TARGET_TEMP_DIR)/$(PRODUCT_NAME)-LinkMap-$(CURRENT_VARIANT)-$(CURRENT_ARCH).txt";
    23772363                                LIBRARY_SEARCH_PATHS = "\"${CONFIGURATION_TEMP_DIR}\"";
     
    23822368                                        "-lipsec",
    23832369                                );
    2384                                 "OTHER_LDFLAGS[sdk=iphoneos*] [arch=*]" = "-lipsec -Wl,-pie";
    23852370                                "OTHER_LDFLAGS[sdk=macosx*][arch=*]" = (
    23862371                                        "-lipsec",
     
    24292414                                GCC_STRICT_ALIASING = YES;
    24302415                                GCC_SYMBOLS_PRIVATE_EXTERN = NO;
     2416                                GCC_TREAT_WARNINGS_AS_ERRORS = NO;
    24312417                                GCC_WARN_64_TO_32_BIT_CONVERSION = NO;
    24322418                                GCC_WARN_ABOUT_RETURN_TYPE = YES;
    24332419                                GCC_WARN_UNINITIALIZED_AUTOS = YES;
    24342420                                GCC_WARN_UNUSED_VARIABLE = YES;
    2435                                 INSTALL_PATH = /usr/bin;
     2421                                INSTALL_PATH_ACTUAL = /usr/bin;
    24362422                                MACOSX_DEPLOYMENT_TARGET = 10.9;
    24372423                                ONLY_ACTIVE_ARCH = NO;
     
    24622448                                );
    24632449                                GCC_SYMBOLS_PRIVATE_EXTERN = NO;
     2450                                GCC_TREAT_WARNINGS_AS_ERRORS = NO;
    24642451                                GCC_WARN_64_TO_32_BIT_CONVERSION = NO;
    24652452                                GCC_WARN_ABOUT_RETURN_TYPE = YES;
    24662453                                GCC_WARN_UNINITIALIZED_AUTOS = YES;
    24672454                                GCC_WARN_UNUSED_VARIABLE = YES;
    2468                                 INSTALL_PATH = /usr/lib;
     2455                                INSTALL_PATH_ACTUAL = /usr/lib;
    24692456                                MACOSX_DEPLOYMENT_TARGET = 10.8;
    24702457                                ONLY_ACTIVE_ARCH = NO;
    2471                                 PRODUCT_NAME = "$(TARGET_NAME)";
     2458                                PRODUCT_NAME = "$(TARGET_NAME)_mdns";
    24722459                                SDKROOT = macosx;
    24732460                        };
     
    24912478                D284BE2C0ADD78180027CCDF /* Development */ = {
    24922479                        isa = XCBuildConfiguration;
     2480                        baseConfigurationReference = 3F347CF5185D57CD00367B40 /* base.xcconfig */;
    24932481                        buildSettings = {
    24942482                                CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)";
     
    25382526                                GCC_DYNAMIC_NO_PIC = NO;
    25392527                                GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
     2528                                GCC_TREAT_WARNINGS_AS_ERRORS = NO;
    25402529                                HEADER_SEARCH_PATHS = (
    25412530                                        "$(SDKROOT)/$(SYSTEM_LIBRARY_DIR)/Frameworks/Security.framework/PrivateHeaders",
     
    25452534                                        "${CONFIGURATION_TEMP_DIR}",
    25462535                                        "$(SDKROOT)/usr/include/libxml2",
    2547                                 );
    2548                                 INSTALL_PATH = /usr/sbin;
     2536                                        "$(SDKROOT)/usr/local/include/",
     2537                                );
     2538                                INSTALL_PATH = "";
     2539                                "INSTALL_PATH[sdk=macosx*]" = "";
     2540                                INSTALL_PATH_ACTUAL = /usr/sbin;
    25492541                                LIBRARY_SEARCH_PATHS = "\"${CONFIGURATION_TEMP_DIR}\"";
    25502542                                MACOSX_DEPLOYMENT_TARGET = 10.5;
     
    26022594                                        "${CONFIGURATION_TEMP_DIR}",
    26032595                                        "$(SDKROOT)/usr/include/libxml2",
     2596                                        "$(SDKROOT)/usr/local/include",
    26042597                                );
    26052598                                LIBRARY_SEARCH_PATHS = "\"${CONFIGURATION_TEMP_DIR}\"";
     
    26502643                                        "${SYSTEM_LIBRARY_DIR}/Frameworks/System.framework/PrivateHeaders",
    26512644                                );
    2652                                 INSTALL_PATH = /usr/bin;
     2645                                INSTALL_PATH_ACTUAL = /usr/bin;
    26532646                                OTHER_CFLAGS = "-no-cpp-precomp";
    26542647                                OTHER_LDFLAGS = "";
     
    26772670                                        "${PROJECT_DERIVED_FILE_DIR}",
    26782671                                );
    2679                                 INSTALL_PATH = /usr/lib/java;
     2672                                INSTALL_PATH_ACTUAL = /usr/lib/java;
    26802673                                LIBRARY_STYLE = DYNAMIC;
    26812674                                MACH_O_TYPE = mh_dylib;
     
    27032696                                        /System/Library/Frameworks/System.Framework/PrivateHeaders,
    27042697                                );
    2705                                 INSTALL_PATH = /usr/sbin;
     2698                                INSTALL_PATH_ACTUAL = /usr/sbin;
    27062699                                LIBRARY_SEARCH_PATHS = "\"${CONFIGURATION_TEMP_DIR}\"";
    27072700                                MACOSX_DEPLOYMENT_TARGET = 10.5;
     
    27252718                                GCC_DYNAMIC_NO_PIC = NO;
    27262719                                GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
    2727                                 INSTALL_PATH = "/Library/Application Support/Bonjour";
     2720                                INSTALL_PATH_ACTUAL = "/Library/Application Support/Bonjour";
    27282721                                MACOSX_DEPLOYMENT_TARGET = 10.5;
    27292722                                OTHER_CFLAGS = "";
     
    27492742                                GCC_SYMBOLS_PRIVATE_EXTERN = NO;
    27502743                                INFOPLIST_FILE = "PreferencePane/Info-PreferencePane.plist";
    2751                                 INSTALL_PATH = /AppleInternal/Library/PreferencePanes;
     2744                                INSTALL_PATH_ACTUAL = /AppleInternal/Library/PreferencePanes;
    27522745                                MACOSX_DEPLOYMENT_TARGET = 10.5;
    27532746                                OTHER_CFLAGS = "";
     
    27752768                                );
    27762769                                HEADER_SEARCH_PATHS = "$(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders/";
    2777                                 INSTALL_PATH = /usr/lib/system;
    2778                                 "INSTALL_PATH[sdk=iphonesimulator*]" = "$(SDKROOT)/usr/lib/system";
     2770                                INSTALL_PATH_ACTUAL = /usr/lib/system;
    27792771                                LINK_WITH_STANDARD_LIBRARIES = NO;
    27802772                                OTHER_LDFLAGS = (
     
    28242816                                GENERATE_PROFILING_CODE = YES;
    28252817                                HEADER_SEARCH_PATHS = "$(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders/";
    2826                                 INSTALL_PATH = /usr/lib/system;
    2827                                 "INSTALL_PATH[sdk=iphonesimulator*]" = "$(SDKROOT)/usr/lib/system";
     2818                                INSTALL_PATH_ACTUAL = /usr/lib/system;
    28282819                                LINK_WITH_STANDARD_LIBRARIES = NO;
    28292820                                OTHER_LDFLAGS = (
     
    28932884                                        "__DARWIN_NON_CANCELABLE=1",
    28942885                                );
     2886                                GCC_TREAT_WARNINGS_AS_ERRORS = NO;
    28952887                                HEADER_SEARCH_PATHS = "$(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders/";
    28962888                                INSTALLHDRS_COPY_PHASE = YES;
    28972889                                INSTALLHDRS_SCRIPT_PHASE = YES;
    2898                                 INSTALL_PATH = /usr/lib/system;
    2899                                 "INSTALL_PATH[sdk=iphonesimulator*]" = "$(SDKROOT)/usr/lib/system";
     2890                                INSTALL_PATH_ACTUAL = /usr/lib/system;
    29002891                                LINK_WITH_STANDARD_LIBRARIES = NO;
    29012892                                OTHER_LDFLAGS = (
  • mDNSResponder/mDNSShared/dns_sd.h

    r152d81f r111789e  
    5555 */
    5656
    57 
    58 /* _DNS_SD_H contains the mDNSResponder version number for this header file, formatted as follows:
    59  *   Major part of the build number * 10000 +
    60  *   minor part of the build number *   100
    61  * For example, Mac OS X 10.4.9 has mDNSResponder-108.4, which would be represented as
    62  * version 1080400. This allows C code to do simple greater-than and less-than comparisons:
    63  * e.g. an application that requires the DNSServiceGetProperty() call (new in mDNSResponder-126) can check:
    64  *
    65  *   #if _DNS_SD_H+0 >= 1260000
    66  *   ... some C code that calls DNSServiceGetProperty() ...
    67  *   #endif
    68  *
    69  * The version defined in this header file symbol allows for compile-time
     57/* _DNS_SD_H contains the API version number for this header file
     58 * The API version defined in this header file symbol allows for compile-time
    7059 * checking, so that C code building with earlier versions of the header file
    7160 * can avoid compile errors trying to use functions that aren't even defined
     
    7867
    7968#ifndef _DNS_SD_H
    80 #define _DNS_SD_H 5440000
     69#define _DNS_SD_H 5610101
    8170
    8271#ifdef  __cplusplus
     
    292281     * DNSServiceRefDeallocate(BrowseRef); // Terminate the browse operation
    293282     * DNSServiceRefDeallocate(MainRef);   // Terminate the shared connection
     283     * Also see Point 4.(Don't Double-Deallocate if the MainRef has been Deallocated) in Notes below:
    294284     *
    295285     * Notes:
     
    329319     * cannot be shared by copying them and using kDNSServiceFlagsShareConnection.
    330320     *
    331      * 4. Don't Double-Deallocate
     321     * 4. Don't Double-Deallocate if the MainRef has been Deallocated
    332322     * Calling DNSServiceRefDeallocate(ref) for a particular operation's DNSServiceRef terminates
    333323     * just that operation. Calling DNSServiceRefDeallocate(ref) for the main shared DNSServiceRef
     
    381371    kDNSServiceFlagsBackgroundTrafficClass  = 0x80000,
    382372    /*
    383     * This flag is meaningful in DNSServiceBrowse, DNSServiceGetAddrInfo, DNSServiceQueryRecord,
    384     * and DNSServiceResolve. When set, it uses the background traffic
     373    * This flag is meaningful for Unicast DNS queries. When set, it uses the background traffic
    385374    * class for packets that service the request.
    386375    */
     
    496485     * input to a DNSServiceBrowse call.
    497486     */
     487     kDNSServiceFlagsDenyCellular           = 0x8000000,
     488    /*
     489     * This flag is meaningful only for Unicast DNS queries. When set, the kernel will restrict
     490     * DNS resolutions on the cellular interface for that request.
     491     */
     492
     493     kDNSServiceFlagsServiceIndex           = 0x10000000,
     494    /*
     495     * This flag is meaningful only for DNSServiceGetAddrInfo() for Unicast DNS queries.
     496     * When set, DNSServiceGetAddrInfo() will interpret the "interfaceIndex" argument of the call
     497     * as the "serviceIndex".
     498     */
     499
     500     kDNSServiceFlagsDenyExpensive          = 0x20000000
     501    /*
     502     * This flag is meaningful only for Unicast DNS queries. When set, the kernel will restrict
     503     * DNS resolutions on interfaces defined as expensive for that request.
     504     */
     505
    498506};
    499507
     
    805813 * to a 32-bit unsigned integer, and the size parameter must be set to sizeof(uint32_t).
    806814 *
    807  * On return, the 32-bit unsigned integer contains the version number, formatted as follows:
    808  *   Major part of the build number * 10000 +
    809  *   minor part of the build number *   100
    810  *
    811  * For example, Mac OS X 10.4.9 has mDNSResponder-108.4, which would be represented as
    812  * version 1080400. This allows applications to do simple greater-than and less-than comparisons:
    813  * e.g. an application that requires at least mDNSResponder-108.4 can check:
    814  *
     815 * On return, the 32-bit unsigned integer contains the API version number
     816 *
     817 * For example, Mac OS X 10.4.9 has API version 1080400.
     818 * This allows applications to do simple greater-than and less-than comparisons:
     819 * e.g. an application that requires at least API version 1080400 can check:
    815820 *   if (version >= 1080400) ...
    816821 *
    817822 * Example usage:
    818  *
    819823 * uint32_t version;
    820824 * uint32_t size = sizeof(version);
    821825 * DNSServiceErrorType err = DNSServiceGetProperty(kDNSServiceProperty_DaemonVersion, &version, &size);
    822  * if (!err) printf("Bonjour version is %d.%d\n", version / 10000, version / 100 % 100);
     826 * if (!err) printf("DNS_SD API version is %d.%d\n", version / 10000, version / 100 % 100);
    823827 */
    824828
     
    832836 *
    833837 * srcport:         Source port (in network byte order) of the UDP socket that was created by
    834  *                  mDNSResponder to send the DNS query on the wire.
     838 *                  the daemon to send the DNS query on the wire.
    835839 *
    836840 * pid:             Process ID of the application that started the name resolution which triggered
    837  *                  mDNSResponder to send the query on the wire. The value can be -1 if the srcport
     841 *                  the daemon to send the query on the wire. The value can be -1 if the srcport
    838842 *                  cannot be mapped.
    839843 *
     
    858862 * Access underlying Unix domain socket for an initialized DNSServiceRef.
    859863 * The DNS Service Discovery implementation uses this socket to communicate between the client and
    860  * the mDNSResponder daemon. The application MUST NOT directly read from or write to this socket.
     864 * the daemon. The application MUST NOT directly read from or write to this socket.
    861865 * Access to the socket is provided so that it can be used as a kqueue event source, a CFRunLoop
    862866 * event source, in a select() loop, etc. When the underlying event management subsystem (kqueue/
     
    868872 * If DNSServiceProcessResult() is called when no data is available for reading on the socket, it
    869873 * will block until data does become available, and then process the data and return to the caller.
     874 * The application is reponsible for checking the return value of DNSServiceProcessResult() to determine
     875 * if the socket is valid and if it should continue to process data on the socket.
    870876 * When data arrives on the socket, the client is responsible for calling DNSServiceProcessResult(ref)
    871877 * in a timely fashion -- if the client allows a large backlog of data to build up the daemon
     
    17501756 *                  by passing this DNSServiceRef to DNSServiceRefDeallocate().
    17511757 *
    1752  * flags:           kDNSServiceFlagsForceMulticast or kDNSServiceFlagsLongLivedQuery.
    1753  *                  Pass kDNSServiceFlagsLongLivedQuery to create a "long-lived" unicast
    1754  *                  query to a unicast DNS server that implements the protocol. This flag
    1755  *                  has no effect on link-local multicast queries.
     1758 * flags:           kDNSServiceFlagsForceMulticast
    17561759 *
    17571760 * interfaceIndex:  The interface on which to issue the query.  Passing 0 causes the query to be
     
    25522555 * be called with an error code. For shared connections, each subordinate DNSServiceRef
    25532556 * will get its own error callback. Currently these error callbacks only happen
    2554  * if the mDNSResponder daemon is manually terminated or crashes, and the error
     2557 * if the daemon is manually terminated or crashes, and the error
    25552558 * code in this case is kDNSServiceErr_ServiceNotRunning. The application must call
    25562559 * DNSServiceRefDeallocate to free the DNSServiceRef when it gets such an error code.
  • mDNSResponder/mDNSShared/dnssd_clientstub.c

    r152d81f r111789e  
    3838#include "dnssd_ipc.h"
    3939
    40 static int gDaemonErr = kDNSServiceErr_NoError;
    41 
    4240#if defined(_WIN32)
    4341
     
    309307static int set_waitlimit(dnssd_sock_t sock, int timeout)
    310308{
     309    int gDaemonErr = kDNSServiceErr_NoError;
     310
    311311    // To prevent stack corruption since select does not work with timeout if fds > FD_SETSIZE(1024)
    312312    if (!gDaemonErr && sock < FD_SETSIZE)
     
    527527        const unsigned long optval = 1;
    528528        #endif
     529        #ifndef USE_TCP_LOOPBACK
     530        char* uds_serverpath = getenv(MDNS_UDS_SERVERPATH_ENVVAR);
     531        if (uds_serverpath == NULL)
     532            uds_serverpath = MDNS_UDS_SERVERPATH;
     533        #endif
    529534        *ref = NULL;
    530535        sdr->sockfd    = socket(AF_DNSSD, SOCK_STREAM, 0);
     
    547552        #else
    548553        saddr.sun_family      = AF_LOCAL;
    549         strcpy(saddr.sun_path, MDNS_UDS_SERVERPATH);
     554        strcpy(saddr.sun_path, uds_serverpath);
    550555        #if !defined(__ppc__) && defined(SO_DEFUNCTOK)
    551556        {
     
    574579            else
    575580            {
    576                 syslog(LOG_WARNING, "dnssd_clientstub ConnectToServer: connect() failed Socket:%d Err:%d Errno:%d %s",
    577                         sdr->sockfd, err, dnssd_errno, dnssd_strerror(dnssd_errno));
     581                syslog(LOG_WARNING, "dnssd_clientstub ConnectToServer: connect() failed path:%s Socket:%d Err:%d Errno:%d %s",
     582                       uds_serverpath, sdr->sockfd, err, dnssd_errno, dnssd_strerror(dnssd_errno));
    578583                dnssd_close(sdr->sockfd);
    579584                FreeDNSServiceOp(sdr);
     
    12251230}
    12261231
    1227 #if APPLE_OSX_mDNSResponder
     1232#if TARGET_OS_EMBEDDED
    12281233
    12291234static int32_t libSystemVersion = 0;
    12301235
    1231 // Return true if the application linked against a version of libsystem where P2P
     1236// Return true if the iOS application linked against a version of libsystem where P2P
    12321237// interfaces were included by default when using kDNSServiceInterfaceIndexAny.
    12331238// Using 160.0.0 == 0xa00000 as the version threshold.
     
    12431248}
    12441249
    1245 #else   // APPLE_OSX_mDNSResponder
    1246 
    1247 // always return false for non Apple platforms
     1250#else   // TARGET_OS_EMBEDDED
     1251
     1252// always return false for non iOS platforms
    12481253static int includeP2PWithIndexAny()
    12491254{
     
    12511256}
    12521257
    1253 #endif  // APPLE_OSX_mDNSResponder
     1258#endif  // TARGET_OS_EMBEDDED
    12541259
    12551260DNSServiceErrorType DNSSD_API DNSServiceResolve
     
    17731778
    17741779    if (pid && setsockopt((*sdRef)->sockfd, SOL_SOCKET, SO_DELEGATED, &pid, sizeof(pid)) == -1)
    1775     { 
     1780    {
     1781        syslog(LOG_WARNING, "dnssdclientstub: Could not setsockopt() for PID[%d], no entitlements or process(pid) invalid errno:%d (%s)", pid, errno, strerror(errno));
    17761782        // Free the hdr in case we return before calling deliver_request()
    17771783        if (hdr)
     
    17841790    if (!pid && setsockopt((*sdRef)->sockfd, SOL_SOCKET, SO_DELEGATED_UUID, uuid, sizeof(uuid_t)) == -1)
    17851791    {
     1792        syslog(LOG_WARNING, "dnssdclientstub: Could not setsockopt() for UUID, no entitlements or process(uuid) invalid errno:%d (%s) ", errno, strerror(errno));
    17861793        // Free the hdr in case we return before calling deliver_request()
    17871794        if (hdr)
  • mDNSResponder/mDNSShared/dnssd_ipc.h

    r152d81f r111789e  
    8686#       define MDNS_UDS_SERVERPATH  "/var/run/mDNSResponder"
    8787#   endif
     88#   define MDNS_UDS_SERVERPATH_ENVVAR "DNSSD_UDS_PATH"
    8889#   define LISTENQ              100
    8990// longest legal control path length
Note: See TracChangeset for help on using the changeset viewer.