mdnsresponder: bump to 567
Signed-off-by: Steven Barth <steven@midlink.org>
This commit is contained in:
parent
8b13d6af4f
commit
c8c6157e7e
3 changed files with 26 additions and 34 deletions
|
@ -8,12 +8,12 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=mDNSResponder
|
PKG_NAME:=mDNSResponder
|
||||||
PKG_VERSION:=561.1.1
|
PKG_VERSION:=567
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=mDNSResponder-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=mDNSResponder-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=http://opensource.apple.com/tarballs/mDNSResponder/
|
PKG_SOURCE_URL:=http://opensource.apple.com/tarballs/mDNSResponder/
|
||||||
PKG_MD5SUM:=d4b56e22798d6f45e29b42cd6720ab6e
|
PKG_MD5SUM:=6eff6d243a12a3d4b6fca03c05a9893b
|
||||||
PKG_MAINTAINER:=Steven Barth <cyrus@openwrt.org>
|
PKG_MAINTAINER:=Steven Barth <cyrus@openwrt.org>
|
||||||
PKG_LICENSE:=Apache-2.0
|
PKG_LICENSE:=Apache-2.0
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
--- a/Clients/Makefile
|
--- a/Clients/Makefile
|
||||||
+++ b/Clients/Makefile
|
+++ b/Clients/Makefile
|
||||||
@@ -23,6 +23,8 @@
|
@@ -27,6 +27,8 @@
|
||||||
|
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
||||||
|
@ -9,22 +9,22 @@
|
||||||
# On OS X the dns_sd library functions are included in libSystem, which is implicitly linked with every executable
|
# On OS X the dns_sd library functions are included in libSystem, which is implicitly linked with every executable
|
||||||
# If /usr/lib/libSystem.dylib exists, then we're on OS X, so we don't need also to link the "dns_sd" shared library
|
# If /usr/lib/libSystem.dylib exists, then we're on OS X, so we don't need also to link the "dns_sd" shared library
|
||||||
ifneq "$(wildcard /usr/lib/libSystem.dylib)" ""
|
ifneq "$(wildcard /usr/lib/libSystem.dylib)" ""
|
||||||
@@ -42,10 +44,10 @@ build:
|
@@ -46,10 +48,10 @@ build:
|
||||||
mkdir build
|
mkdir build
|
||||||
|
|
||||||
build/dns-sd: build dns-sd.c ClientCommon.c
|
build/dns-sd: build dns-sd.c ClientCommon.c
|
||||||
- cc $(filter %.c %.o, $+) $(LIBS) -I../mDNSShared -Wall -o $@
|
- $(CC) $(filter %.c %.o, $+) $(LIBS) -I../mDNSShared -Wall -o $@
|
||||||
+ $(CC) $(CFLAGS) $(filter %.c %.o, $+) $(LIBS) -I../mDNSShared -Wall -o $@
|
+ $(CC) $(CFLAGS) $(filter %.c %.o, $+) $(LIBS) -I../mDNSShared -Wall -o $@
|
||||||
|
|
||||||
build/dns-sd64: build dns-sd.c ClientCommon.c
|
build/dns-sd64: build dns-sd.c ClientCommon.c
|
||||||
- cc $(filter %.c %.o, $+) $(LIBS) -I../mDNSShared -Wall -o $@ -m64
|
- $(CC) $(filter %.c %.o, $+) $(LIBS) -I../mDNSShared -Wall -o $@ -m64
|
||||||
+ $(CC) $(CFLAGS) $(filter %.c %.o, $+) $(LIBS) -I../mDNSShared -Wall -o $@ -m64
|
+ $(CC) $(CFLAGS) $(filter %.c %.o, $+) $(LIBS) -I../mDNSShared -Wall -o $@ -m64
|
||||||
|
|
||||||
# Note, we can make a 'fat' version of dns-sd using 'lipo', as shown below, but we
|
# Note, we can make a 'fat' version of dns-sd using 'lipo', as shown below, but we
|
||||||
# don't, because we don't want or need a 'fat' version of dns-sd, because it will
|
# don't, because we don't want or need a 'fat' version of dns-sd, because it will
|
||||||
--- a/mDNSPosix/Makefile
|
--- a/mDNSPosix/Makefile
|
||||||
+++ b/mDNSPosix/Makefile
|
+++ b/mDNSPosix/Makefile
|
||||||
@@ -54,10 +54,11 @@ COREDIR = ../mDNSCore
|
@@ -54,11 +54,12 @@ COREDIR = ../mDNSCore
|
||||||
SHAREDDIR ?= ../mDNSShared
|
SHAREDDIR ?= ../mDNSShared
|
||||||
JDK = /usr/jdk
|
JDK = /usr/jdk
|
||||||
|
|
||||||
|
@ -32,22 +32,14 @@
|
||||||
+CC = @gcc
|
+CC = @gcc
|
||||||
BISON = @bison
|
BISON = @bison
|
||||||
FLEX = @flex
|
FLEX = @flex
|
||||||
|
ST = @strip
|
||||||
-LD = ld -shared
|
-LD = ld -shared
|
||||||
+LD = @ld
|
+LD = @ld
|
||||||
+SOOPTS = -shared
|
+SOOPTS = -shared
|
||||||
CP = cp
|
CP = cp
|
||||||
RM = rm
|
RM = rm
|
||||||
LN = ln -s -f
|
LN = ln -s -f
|
||||||
@@ -82,7 +83,7 @@ else
|
@@ -92,7 +93,7 @@ CFLAGS_DEBUG = -O0 -DMDNS_DEBUGMSGS=0
|
||||||
CFLAGS_DEBUG = -Os -DMDNS_DEBUGMSGS=0
|
|
||||||
OBJDIR ?= objects/prod
|
|
||||||
BUILDDIR ?= build/prod
|
|
||||||
-STRIP = strip -S
|
|
||||||
+STRIP = @strip -S
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Configure per-OS peculiarities
|
|
||||||
@@ -91,7 +92,7 @@ CFLAGS_DEBUG = -O0 -DMDNS_DEBUGMSGS=0
|
|
||||||
CFLAGS_OS = -DNOT_HAVE_DAEMON -DNOT_HAVE_SA_LEN -DNOT_HAVE_SOCKLEN_T -DNOT_HAVE_IF_NAMETOINDEX \
|
CFLAGS_OS = -DNOT_HAVE_DAEMON -DNOT_HAVE_SA_LEN -DNOT_HAVE_SOCKLEN_T -DNOT_HAVE_IF_NAMETOINDEX \
|
||||||
-DLOG_PERROR=0 -D_XPG4_2 -D__EXTENSIONS__ -DHAVE_BROKEN_RECVIF_NAME -DTARGET_OS_SOLARIS
|
-DLOG_PERROR=0 -D_XPG4_2 -D__EXTENSIONS__ -DHAVE_BROKEN_RECVIF_NAME -DTARGET_OS_SOLARIS
|
||||||
CC = gcc
|
CC = gcc
|
||||||
|
@ -56,7 +48,7 @@
|
||||||
LINKOPTS = -lsocket -lnsl -lresolv
|
LINKOPTS = -lsocket -lnsl -lresolv
|
||||||
JAVACFLAGS_OS += -I$(JDK)/include/solaris
|
JAVACFLAGS_OS += -I$(JDK)/include/solaris
|
||||||
ifneq ($(DEBUG),1)
|
ifneq ($(DEBUG),1)
|
||||||
@@ -147,7 +148,8 @@ CFLAGS_OS = -DHAVE_IPV6 -no-cpp-precomp
|
@@ -148,7 +149,8 @@ CFLAGS_OS = -DHAVE_IPV6 -no-cpp-precomp
|
||||||
-D__MAC_OS_X_VERSION_MIN_REQUIRED=__MAC_OS_X_VERSION_10_4 \
|
-D__MAC_OS_X_VERSION_MIN_REQUIRED=__MAC_OS_X_VERSION_10_4 \
|
||||||
-D__APPLE_USE_RFC_2292 #-Wunreachable-code
|
-D__APPLE_USE_RFC_2292 #-Wunreachable-code
|
||||||
CC = gcc
|
CC = gcc
|
||||||
|
@ -66,7 +58,7 @@
|
||||||
LINKOPTS = -lSystem
|
LINKOPTS = -lSystem
|
||||||
LDSUFFIX = dylib
|
LDSUFFIX = dylib
|
||||||
JDK = /System/Library/Frameworks/JavaVM.framework/Home
|
JDK = /System/Library/Frameworks/JavaVM.framework/Home
|
||||||
@@ -169,8 +171,9 @@ NSSLIBFILE := $(NSSLIBNAME)-$(NSSVERSIO
|
@@ -170,8 +172,9 @@ NSSLIBFILE := $(NSSLIBNAME)-$(NSSVERSIO
|
||||||
NSSLINKNAME := $(NSSLIBNAME).so.2
|
NSSLINKNAME := $(NSSLIBNAME).so.2
|
||||||
NSSINSTPATH := /lib
|
NSSINSTPATH := /lib
|
||||||
|
|
||||||
|
@ -77,7 +69,7 @@
|
||||||
INSTBASE?=/usr
|
INSTBASE?=/usr
|
||||||
STARTUPSCRIPTNAME?=mdns
|
STARTUPSCRIPTNAME?=mdns
|
||||||
|
|
||||||
@@ -256,7 +259,7 @@ libdns_sd: setup $(BUILDDIR)/libdns_sd.$
|
@@ -257,7 +260,7 @@ libdns_sd: setup $(BUILDDIR)/libdns_sd.$
|
||||||
CLIENTLIBOBJS = $(OBJDIR)/dnssd_clientlib.c.so.o $(OBJDIR)/dnssd_clientstub.c.so.o $(OBJDIR)/dnssd_ipc.c.so.o
|
CLIENTLIBOBJS = $(OBJDIR)/dnssd_clientlib.c.so.o $(OBJDIR)/dnssd_clientstub.c.so.o $(OBJDIR)/dnssd_ipc.c.so.o
|
||||||
|
|
||||||
$(BUILDDIR)/libdns_sd.$(LDSUFFIX): $(CLIENTLIBOBJS)
|
$(BUILDDIR)/libdns_sd.$(LDSUFFIX): $(CLIENTLIBOBJS)
|
||||||
|
@ -86,7 +78,7 @@
|
||||||
@$(STRIP) $@
|
@$(STRIP) $@
|
||||||
|
|
||||||
Clients: setup libdns_sd ../Clients/build/dns-sd
|
Clients: setup libdns_sd ../Clients/build/dns-sd
|
||||||
@@ -291,7 +294,7 @@ InstalledManPages: $(MANPATH)/man8/mdnsd
|
@@ -292,7 +295,7 @@ InstalledManPages: $(MANPATH)/man8/mdnsd
|
||||||
InstalledClients: $(INSTBASE)/bin/dns-sd
|
InstalledClients: $(INSTBASE)/bin/dns-sd
|
||||||
@echo $+ " installed"
|
@echo $+ " installed"
|
||||||
|
|
||||||
|
@ -95,7 +87,7 @@
|
||||||
@echo $+ " installed"
|
@echo $+ " installed"
|
||||||
|
|
||||||
# Note: If daemon already installed, we make sure it's stopped before overwriting it
|
# Note: If daemon already installed, we make sure it's stopped before overwriting it
|
||||||
@@ -346,19 +349,21 @@ $(INSTBASE)/bin/dns-sd: ../Clients/build
|
@@ -347,19 +350,21 @@ $(INSTBASE)/bin/dns-sd: ../Clients/build
|
||||||
|
|
||||||
$(NSSINSTPATH)/$(NSSLINKNAME): $(NSSINSTPATH)/$(NSSLIBFILE)
|
$(NSSINSTPATH)/$(NSSLINKNAME): $(NSSINSTPATH)/$(NSSLIBFILE)
|
||||||
$(LN) $< $@
|
$(LN) $< $@
|
||||||
|
|
|
@ -84,7 +84,7 @@
|
||||||
}
|
}
|
||||||
--- a/mDNSPosix/mDNSPosix.c
|
--- a/mDNSPosix/mDNSPosix.c
|
||||||
+++ b/mDNSPosix/mDNSPosix.c
|
+++ b/mDNSPosix/mDNSPosix.c
|
||||||
@@ -136,7 +136,7 @@ mDNSlocal void SockAddrTomDNSAddr(const
|
@@ -138,7 +138,7 @@ mDNSlocal void SockAddrTomDNSAddr(const
|
||||||
|
|
||||||
// mDNS core calls this routine when it needs to send a packet.
|
// mDNS core calls this routine when it needs to send a packet.
|
||||||
mDNSexport mStatus mDNSPlatformSendUDP(const mDNS *const m, const void *const msg, const mDNSu8 *const end,
|
mDNSexport mStatus mDNSPlatformSendUDP(const mDNS *const m, const void *const msg, const mDNSu8 *const end,
|
||||||
|
@ -93,7 +93,7 @@
|
||||||
mDNSIPPort dstPort, mDNSBool useBackgroundTrafficClass)
|
mDNSIPPort dstPort, mDNSBool useBackgroundTrafficClass)
|
||||||
{
|
{
|
||||||
int err = 0;
|
int err = 0;
|
||||||
@@ -574,9 +574,17 @@ mDNSlocal void FreePosixNetworkInterface
|
@@ -583,9 +583,17 @@ mDNSlocal void FreePosixNetworkInterface
|
||||||
{
|
{
|
||||||
assert(intf != NULL);
|
assert(intf != NULL);
|
||||||
if (intf->intfName != NULL) free((void *)intf->intfName);
|
if (intf->intfName != NULL) free((void *)intf->intfName);
|
||||||
|
@ -111,9 +111,9 @@
|
||||||
+ assert(rv == 0);
|
+ assert(rv == 0);
|
||||||
+ }
|
+ }
|
||||||
#endif
|
#endif
|
||||||
free(intf);
|
|
||||||
}
|
// Move interface to the RecentInterfaces list for a minute
|
||||||
@@ -703,6 +711,29 @@ mDNSlocal int SetupSocket(struct sockadd
|
@@ -724,6 +732,29 @@ mDNSlocal int SetupSocket(struct sockadd
|
||||||
if (err < 0) { err = errno; perror("setsockopt - IP_MULTICAST_TTL"); }
|
if (err < 0) { err = errno; perror("setsockopt - IP_MULTICAST_TTL"); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -143,7 +143,7 @@
|
||||||
// And start listening for packets
|
// And start listening for packets
|
||||||
if (err == 0)
|
if (err == 0)
|
||||||
{
|
{
|
||||||
@@ -784,6 +815,29 @@ mDNSlocal int SetupSocket(struct sockadd
|
@@ -805,6 +836,29 @@ mDNSlocal int SetupSocket(struct sockadd
|
||||||
if (err < 0) { err = errno; perror("setsockopt - IPV6_MULTICAST_HOPS"); }
|
if (err < 0) { err = errno; perror("setsockopt - IPV6_MULTICAST_HOPS"); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -173,7 +173,7 @@
|
||||||
// And start listening for packets
|
// And start listening for packets
|
||||||
if (err == 0)
|
if (err == 0)
|
||||||
{
|
{
|
||||||
@@ -815,7 +869,12 @@ mDNSlocal int SetupSocket(struct sockadd
|
@@ -836,7 +890,12 @@ mDNSlocal int SetupSocket(struct sockadd
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clean up
|
// Clean up
|
||||||
|
@ -187,7 +187,7 @@
|
||||||
assert((err == 0) == (*sktPtr != -1));
|
assert((err == 0) == (*sktPtr != -1));
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
@@ -994,7 +1053,7 @@ mDNSlocal mStatus OpenIfNotifySocket(int
|
@@ -1026,7 +1085,7 @@ mDNSlocal mStatus OpenIfNotifySocket(int
|
||||||
/* Subscribe the socket to Link & IP addr notifications. */
|
/* Subscribe the socket to Link & IP addr notifications. */
|
||||||
mDNSPlatformMemZero(&snl, sizeof snl);
|
mDNSPlatformMemZero(&snl, sizeof snl);
|
||||||
snl.nl_family = AF_NETLINK;
|
snl.nl_family = AF_NETLINK;
|
||||||
|
@ -196,7 +196,7 @@
|
||||||
ret = bind(sock, (struct sockaddr *) &snl, sizeof snl);
|
ret = bind(sock, (struct sockaddr *) &snl, sizeof snl);
|
||||||
if (0 == ret)
|
if (0 == ret)
|
||||||
*pFD = sock;
|
*pFD = sock;
|
||||||
@@ -1072,11 +1131,18 @@ mDNSlocal mDNSu32 ProcessRoutingNo
|
@@ -1104,11 +1163,18 @@ mDNSlocal mDNSu32 ProcessRoutingNo
|
||||||
PrintNetLinkMsg(pNLMsg);
|
PrintNetLinkMsg(pNLMsg);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -217,7 +217,7 @@
|
||||||
|
|
||||||
// Advance pNLMsg to the next message in the buffer
|
// Advance pNLMsg to the next message in the buffer
|
||||||
if ((pNLMsg->nlmsg_flags & NLM_F_MULTI) != 0 && pNLMsg->nlmsg_type != NLMSG_DONE)
|
if ((pNLMsg->nlmsg_flags & NLM_F_MULTI) != 0 && pNLMsg->nlmsg_type != NLMSG_DONE)
|
||||||
@@ -1247,8 +1313,12 @@ mDNSexport mStatus mDNSPlatformInit(mDNS
|
@@ -1279,8 +1345,12 @@ mDNSexport mStatus mDNSPlatformInit(mDNS
|
||||||
if (err == mStatus_NoError) err = SetupSocket(&sa, zeroIPPort, 0, &m->p->unicastSocket6);
|
if (err == mStatus_NoError) err = SetupSocket(&sa, zeroIPPort, 0, &m->p->unicastSocket6);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -230,7 +230,7 @@
|
||||||
|
|
||||||
// Tell mDNS core about DNS Servers
|
// Tell mDNS core about DNS Servers
|
||||||
mDNS_Lock(m);
|
mDNS_Lock(m);
|
||||||
@@ -1281,9 +1351,17 @@ mDNSexport void mDNSPlatformClose(mDNS *
|
@@ -1313,9 +1383,17 @@ mDNSexport void mDNSPlatformClose(mDNS *
|
||||||
{
|
{
|
||||||
assert(m != NULL);
|
assert(m != NULL);
|
||||||
ClearInterfaceList(m);
|
ClearInterfaceList(m);
|
||||||
|
@ -250,7 +250,7 @@
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1533,14 +1611,14 @@ mDNSexport mStatus mDNSPlatformClearS
|
@@ -1571,14 +1649,14 @@ mDNSexport mStatus mDNSPlatformClearS
|
||||||
mDNSexport mDNSu16 mDNSPlatformGetUDPPort(UDPSocket *sock)
|
mDNSexport mDNSu16 mDNSPlatformGetUDPPort(UDPSocket *sock)
|
||||||
{
|
{
|
||||||
(void) sock; // unused
|
(void) sock; // unused
|
||||||
|
|
Loading…
Reference in a new issue