mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-08 05:29:22 +00:00
mdns: Upgrade 2200.0.8 -> 2200.40.37.0.1
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
+6
-9
@@ -14,11 +14,11 @@ Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
|
|||||||
mDNSPosix/mDNSPosix.c | 24 ++++++++++++++----------
|
mDNSPosix/mDNSPosix.c | 24 ++++++++++++++----------
|
||||||
1 file changed, 14 insertions(+), 10 deletions(-)
|
1 file changed, 14 insertions(+), 10 deletions(-)
|
||||||
|
|
||||||
diff --git a/mDNSPosix/mDNSPosix.c b/mDNSPosix/mDNSPosix.c
|
Index: mDNSResponder/mDNSPosix/mDNSPosix.c
|
||||||
index 0a7c3dfa2475..fe7242d83599 100644
|
===================================================================
|
||||||
--- a/mDNSPosix/mDNSPosix.c
|
--- mDNSResponder.orig/mDNSPosix/mDNSPosix.c
|
||||||
+++ b/mDNSPosix/mDNSPosix.c
|
+++ mDNSResponder/mDNSPosix/mDNSPosix.c
|
||||||
@@ -1322,6 +1322,19 @@ mDNSlocal int SetupSocket(struct sockaddr *intfAddr, mDNSIPPort port, int interf
|
@@ -1322,6 +1322,19 @@ mDNSlocal int SetupSocket(struct sockadd
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -38,7 +38,7 @@ index 0a7c3dfa2475..fe7242d83599 100644
|
|||||||
// Creates a PosixNetworkInterface for the interface whose IP address is
|
// Creates a PosixNetworkInterface for the interface whose IP address is
|
||||||
// intfAddr and whose name is intfName and registers it with mDNS core.
|
// intfAddr and whose name is intfName and registers it with mDNS core.
|
||||||
mDNSlocal int SetupOneInterface(mDNS *const m, struct sockaddr *intfAddr, struct sockaddr *intfMask,
|
mDNSlocal int SetupOneInterface(mDNS *const m, struct sockaddr *intfAddr, struct sockaddr *intfMask,
|
||||||
@@ -1559,16 +1572,7 @@ mDNSlocal int SetupInterfaceList(mDNS *const m)
|
@@ -1559,16 +1572,7 @@ mDNSlocal int SetupInterfaceList(mDNS *c
|
||||||
|
|
||||||
// Clean up.
|
// Clean up.
|
||||||
if (intfList != NULL) freeifaddrs(intfList);
|
if (intfList != NULL) freeifaddrs(intfList);
|
||||||
@@ -56,6 +56,3 @@ index 0a7c3dfa2475..fe7242d83599 100644
|
|||||||
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
--
|
|
||||||
2.35.1
|
|
||||||
|
|
||||||
|
|||||||
+6
-6
@@ -14,11 +14,11 @@ Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
|
|||||||
mDNSPosix/mDNSPosix.c | 4 +++-
|
mDNSPosix/mDNSPosix.c | 4 +++-
|
||||||
1 file changed, 3 insertions(+), 1 deletion(-)
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
diff --git a/mDNSPosix/mDNSPosix.c b/mDNSPosix/mDNSPosix.c
|
Index: mDNSResponder/mDNSPosix/mDNSPosix.c
|
||||||
index d7f31cc4d5cf..f10301253f58 100644
|
===================================================================
|
||||||
--- a/mDNSPosix/mDNSPosix.c
|
--- mDNSResponder.orig/mDNSPosix/mDNSPosix.c
|
||||||
+++ b/mDNSPosix/mDNSPosix.c
|
+++ mDNSResponder/mDNSPosix/mDNSPosix.c
|
||||||
@@ -1895,6 +1895,7 @@ mDNSlocal void InterfaceChangeCallback(int fd, void *context)
|
@@ -1895,6 +1895,7 @@ mDNSlocal void InterfaceChangeCallback(i
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if ((ifa_loop4 == NULL) &&
|
if ((ifa_loop4 == NULL) &&
|
||||||
@@ -26,7 +26,7 @@ index d7f31cc4d5cf..f10301253f58 100644
|
|||||||
((*ifi)->ifa_addr->sa_family == AF_INET) &&
|
((*ifi)->ifa_addr->sa_family == AF_INET) &&
|
||||||
((*ifi)->ifa_flags & IFF_UP) &&
|
((*ifi)->ifa_flags & IFF_UP) &&
|
||||||
((*ifi)->ifa_flags & IFF_LOOPBACK))
|
((*ifi)->ifa_flags & IFF_LOOPBACK))
|
||||||
@@ -1903,7 +1904,8 @@ mDNSlocal void InterfaceChangeCallback(int fd, void *context)
|
@@ -1903,7 +1904,8 @@ mDNSlocal void InterfaceChangeCallback(i
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+4
-7
@@ -11,10 +11,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|||||||
mDNSPosix/nss_mdns.c | 3 +++
|
mDNSPosix/nss_mdns.c | 3 +++
|
||||||
1 file changed, 3 insertions(+)
|
1 file changed, 3 insertions(+)
|
||||||
|
|
||||||
diff --git a/mDNSPosix/nss_mdns.c b/mDNSPosix/nss_mdns.c
|
Index: mDNSResponder/mDNSPosix/nss_mdns.c
|
||||||
index afadb3c6c33b..84c312759463 100644
|
===================================================================
|
||||||
--- a/mDNSPosix/nss_mdns.c
|
--- mDNSResponder.orig/mDNSPosix/nss_mdns.c
|
||||||
+++ b/mDNSPosix/nss_mdns.c
|
+++ mDNSResponder/mDNSPosix/nss_mdns.c
|
||||||
@@ -89,6 +89,9 @@
|
@@ -89,6 +89,9 @@
|
||||||
|
|
||||||
#include <dns_sd.h>
|
#include <dns_sd.h>
|
||||||
@@ -25,6 +25,3 @@ index afadb3c6c33b..84c312759463 100644
|
|||||||
|
|
||||||
//----------
|
//----------
|
||||||
// Public functions
|
// Public functions
|
||||||
--
|
|
||||||
2.35.1
|
|
||||||
|
|
||||||
|
|||||||
+6
-9
@@ -13,11 +13,11 @@ Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
|
|||||||
mDNSPosix/mDNSPosix.c | 22 ++++++++++++++++------
|
mDNSPosix/mDNSPosix.c | 22 ++++++++++++++++------
|
||||||
1 file changed, 16 insertions(+), 6 deletions(-)
|
1 file changed, 16 insertions(+), 6 deletions(-)
|
||||||
|
|
||||||
diff --git a/mDNSPosix/mDNSPosix.c b/mDNSPosix/mDNSPosix.c
|
Index: mDNSResponder/mDNSPosix/mDNSPosix.c
|
||||||
index fe7242d83599..a32a880c0ce5 100644
|
===================================================================
|
||||||
--- a/mDNSPosix/mDNSPosix.c
|
--- mDNSResponder.orig/mDNSPosix/mDNSPosix.c
|
||||||
+++ b/mDNSPosix/mDNSPosix.c
|
+++ mDNSResponder/mDNSPosix/mDNSPosix.c
|
||||||
@@ -1043,6 +1043,19 @@ mDNSlocal void FreePosixNetworkInterface(PosixNetworkInterface *intf)
|
@@ -1043,6 +1043,19 @@ mDNSlocal void FreePosixNetworkInterface
|
||||||
gRecentInterfaces = intf;
|
gRecentInterfaces = intf;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -37,7 +37,7 @@ index fe7242d83599..a32a880c0ce5 100644
|
|||||||
// Grab the first interface, deregister it, free it, and repeat until done.
|
// Grab the first interface, deregister it, free it, and repeat until done.
|
||||||
mDNSlocal void ClearInterfaceList(mDNS *const m)
|
mDNSlocal void ClearInterfaceList(mDNS *const m)
|
||||||
{
|
{
|
||||||
@@ -1051,13 +1064,10 @@ mDNSlocal void ClearInterfaceList(mDNS *const m)
|
@@ -1051,13 +1064,10 @@ mDNSlocal void ClearInterfaceList(mDNS *
|
||||||
while (m->HostInterfaces)
|
while (m->HostInterfaces)
|
||||||
{
|
{
|
||||||
PosixNetworkInterface *intf = (PosixNetworkInterface*)(m->HostInterfaces);
|
PosixNetworkInterface *intf = (PosixNetworkInterface*)(m->HostInterfaces);
|
||||||
@@ -54,6 +54,3 @@ index fe7242d83599..a32a880c0ce5 100644
|
|||||||
}
|
}
|
||||||
|
|
||||||
mDNSlocal int SetupIPv6Socket(int fd)
|
mDNSlocal int SetupIPv6Socket(int fd)
|
||||||
--
|
|
||||||
2.35.1
|
|
||||||
|
|
||||||
|
|||||||
+5
-8
@@ -9,11 +9,11 @@ Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
|
|||||||
mDNSPosix/Makefile | 2 +-
|
mDNSPosix/Makefile | 2 +-
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
diff --git a/mDNSPosix/Makefile b/mDNSPosix/Makefile
|
Index: mDNSResponder/mDNSPosix/Makefile
|
||||||
index 802a13dd70b6..5e74193c0e89 100755
|
===================================================================
|
||||||
--- a/mDNSPosix/Makefile
|
--- mDNSResponder.orig/mDNSPosix/Makefile
|
||||||
+++ b/mDNSPosix/Makefile
|
+++ mDNSResponder/mDNSPosix/Makefile
|
||||||
@@ -276,7 +276,7 @@ libdns_sd: setup $(BUILDDIR)/libdns_sd.$(LDSUFFIX)
|
@@ -276,7 +276,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 $(OBJDIR)/dnssd_errstring.c.so.o
|
CLIENTLIBOBJS = $(OBJDIR)/dnssd_clientlib.c.so.o $(OBJDIR)/dnssd_clientstub.c.so.o $(OBJDIR)/dnssd_ipc.c.so.o $(OBJDIR)/dnssd_errstring.c.so.o
|
||||||
|
|
||||||
$(BUILDDIR)/libdns_sd.$(LDSUFFIX): $(CLIENTLIBOBJS)
|
$(BUILDDIR)/libdns_sd.$(LDSUFFIX): $(CLIENTLIBOBJS)
|
||||||
@@ -22,6 +22,3 @@ index 802a13dd70b6..5e74193c0e89 100755
|
|||||||
$(STRIP) $@
|
$(STRIP) $@
|
||||||
|
|
||||||
Clients: setup libdns_sd ../Clients/build/dns-sd
|
Clients: setup libdns_sd ../Clients/build/dns-sd
|
||||||
--
|
|
||||||
2.35.1
|
|
||||||
|
|
||||||
|
|||||||
+9
-12
@@ -14,11 +14,11 @@ Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
|
|||||||
mDNSPosix/mDNSPosix.h | 2 ++
|
mDNSPosix/mDNSPosix.h | 2 ++
|
||||||
2 files changed, 3 insertions(+)
|
2 files changed, 3 insertions(+)
|
||||||
|
|
||||||
diff --git a/mDNSPosix/mDNSPosix.c b/mDNSPosix/mDNSPosix.c
|
Index: mDNSResponder/mDNSPosix/mDNSPosix.c
|
||||||
index a32a880c0ce5..9a5b4d7ea4cb 100644
|
===================================================================
|
||||||
--- a/mDNSPosix/mDNSPosix.c
|
--- mDNSResponder.orig/mDNSPosix/mDNSPosix.c
|
||||||
+++ b/mDNSPosix/mDNSPosix.c
|
+++ mDNSResponder/mDNSPosix/mDNSPosix.c
|
||||||
@@ -1415,6 +1415,7 @@ mDNSlocal int SetupOneInterface(mDNS *const m, struct sockaddr *intfAddr, struct
|
@@ -1415,6 +1415,7 @@ mDNSlocal int SetupOneInterface(mDNS *co
|
||||||
// Set up the extra fields in PosixNetworkInterface.
|
// Set up the extra fields in PosixNetworkInterface.
|
||||||
assert(intf->intfName != NULL); // intf->intfName already set up above
|
assert(intf->intfName != NULL); // intf->intfName already set up above
|
||||||
intf->index = intfIndex;
|
intf->index = intfIndex;
|
||||||
@@ -26,10 +26,10 @@ index a32a880c0ce5..9a5b4d7ea4cb 100644
|
|||||||
intf->multicastSocket4 = -1;
|
intf->multicastSocket4 = -1;
|
||||||
#if HAVE_IPV6
|
#if HAVE_IPV6
|
||||||
intf->multicastSocket6 = -1;
|
intf->multicastSocket6 = -1;
|
||||||
diff --git a/mDNSPosix/mDNSPosix.h b/mDNSPosix/mDNSPosix.h
|
Index: mDNSResponder/mDNSPosix/mDNSPosix.h
|
||||||
index 9675591b0434..dd7864cd0d5e 100644
|
===================================================================
|
||||||
--- a/mDNSPosix/mDNSPosix.h
|
--- mDNSResponder.orig/mDNSPosix/mDNSPosix.h
|
||||||
+++ b/mDNSPosix/mDNSPosix.h
|
+++ mDNSResponder/mDNSPosix/mDNSPosix.h
|
||||||
@@ -19,6 +19,7 @@
|
@@ -19,6 +19,7 @@
|
||||||
#define __mDNSPlatformPosix_h
|
#define __mDNSPlatformPosix_h
|
||||||
|
|
||||||
@@ -46,6 +46,3 @@ index 9675591b0434..dd7864cd0d5e 100644
|
|||||||
int multicastSocket4;
|
int multicastSocket4;
|
||||||
#if HAVE_IPV6
|
#if HAVE_IPV6
|
||||||
int multicastSocket6;
|
int multicastSocket6;
|
||||||
--
|
|
||||||
2.35.1
|
|
||||||
|
|
||||||
|
|||||||
+8
-11
@@ -14,11 +14,11 @@ Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
|
|||||||
mDNSPosix/mDNSPosix.c | 7 ++++---
|
mDNSPosix/mDNSPosix.c | 7 ++++---
|
||||||
1 file changed, 4 insertions(+), 3 deletions(-)
|
1 file changed, 4 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
diff --git a/mDNSPosix/mDNSPosix.c b/mDNSPosix/mDNSPosix.c
|
Index: mDNSResponder/mDNSPosix/mDNSPosix.c
|
||||||
index 9a5b4d7ea4cb..02a19b438e03 100644
|
===================================================================
|
||||||
--- a/mDNSPosix/mDNSPosix.c
|
--- mDNSResponder.orig/mDNSPosix/mDNSPosix.c
|
||||||
+++ b/mDNSPosix/mDNSPosix.c
|
+++ mDNSResponder/mDNSPosix/mDNSPosix.c
|
||||||
@@ -1348,7 +1348,7 @@ mDNSlocal void CleanRecentInterfaces(void)
|
@@ -1348,7 +1348,7 @@ mDNSlocal void CleanRecentInterfaces(voi
|
||||||
// Creates a PosixNetworkInterface for the interface whose IP address is
|
// Creates a PosixNetworkInterface for the interface whose IP address is
|
||||||
// intfAddr and whose name is intfName and registers it with mDNS core.
|
// intfAddr and whose name is intfName and registers it with mDNS core.
|
||||||
mDNSlocal int SetupOneInterface(mDNS *const m, struct sockaddr *intfAddr, struct sockaddr *intfMask,
|
mDNSlocal int SetupOneInterface(mDNS *const m, struct sockaddr *intfAddr, struct sockaddr *intfMask,
|
||||||
@@ -27,7 +27,7 @@ index 9a5b4d7ea4cb..02a19b438e03 100644
|
|||||||
{
|
{
|
||||||
int err = 0;
|
int err = 0;
|
||||||
PosixNetworkInterface *intf;
|
PosixNetworkInterface *intf;
|
||||||
@@ -1411,6 +1411,7 @@ mDNSlocal int SetupOneInterface(mDNS *const m, struct sockaddr *intfAddr, struct
|
@@ -1411,6 +1411,7 @@ mDNSlocal int SetupOneInterface(mDNS *co
|
||||||
|
|
||||||
intf->coreIntf.Advertise = m->AdvertiseLocalAddresses;
|
intf->coreIntf.Advertise = m->AdvertiseLocalAddresses;
|
||||||
intf->coreIntf.McastTxRx = mDNStrue;
|
intf->coreIntf.McastTxRx = mDNStrue;
|
||||||
@@ -35,7 +35,7 @@ index 9a5b4d7ea4cb..02a19b438e03 100644
|
|||||||
|
|
||||||
// Set up the extra fields in PosixNetworkInterface.
|
// Set up the extra fields in PosixNetworkInterface.
|
||||||
assert(intf->intfName != NULL); // intf->intfName already set up above
|
assert(intf->intfName != NULL); // intf->intfName already set up above
|
||||||
@@ -1561,7 +1562,7 @@ mDNSlocal int SetupInterfaceList(mDNS *const m)
|
@@ -1561,7 +1562,7 @@ mDNSlocal int SetupInterfaceList(mDNS *c
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (SetupOneInterface(m, i->ifa_addr, i->ifa_netmask,
|
if (SetupOneInterface(m, i->ifa_addr, i->ifa_netmask,
|
||||||
@@ -44,7 +44,7 @@ index 9a5b4d7ea4cb..02a19b438e03 100644
|
|||||||
{
|
{
|
||||||
if (i->ifa_addr->sa_family == AF_INET)
|
if (i->ifa_addr->sa_family == AF_INET)
|
||||||
foundav4 = mDNStrue;
|
foundav4 = mDNStrue;
|
||||||
@@ -1578,7 +1579,7 @@ mDNSlocal int SetupInterfaceList(mDNS *const m)
|
@@ -1578,7 +1579,7 @@ mDNSlocal int SetupInterfaceList(mDNS *c
|
||||||
// if ((m->HostInterfaces == NULL) && (firstLoopback != NULL))
|
// if ((m->HostInterfaces == NULL) && (firstLoopback != NULL))
|
||||||
if (!foundav4 && firstLoopback)
|
if (!foundav4 && firstLoopback)
|
||||||
(void) SetupOneInterface(m, firstLoopback->ifa_addr, firstLoopback->ifa_netmask,
|
(void) SetupOneInterface(m, firstLoopback->ifa_addr, firstLoopback->ifa_netmask,
|
||||||
@@ -53,6 +53,3 @@ index 9a5b4d7ea4cb..02a19b438e03 100644
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Clean up.
|
// Clean up.
|
||||||
--
|
|
||||||
2.35.1
|
|
||||||
|
|
||||||
|
|||||||
+4
-7
@@ -12,10 +12,10 @@ Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
|
|||||||
mDNSPosix/Makefile | 14 ++++++++------
|
mDNSPosix/Makefile | 14 ++++++++------
|
||||||
1 file changed, 8 insertions(+), 6 deletions(-)
|
1 file changed, 8 insertions(+), 6 deletions(-)
|
||||||
|
|
||||||
diff --git a/mDNSPosix/Makefile b/mDNSPosix/Makefile
|
Index: mDNSResponder/mDNSPosix/Makefile
|
||||||
index 5e74193c0e89..b4313c36b035 100755
|
===================================================================
|
||||||
--- a/mDNSPosix/Makefile
|
--- mDNSResponder.orig/mDNSPosix/Makefile
|
||||||
+++ b/mDNSPosix/Makefile
|
+++ mDNSResponder/mDNSPosix/Makefile
|
||||||
@@ -112,9 +112,11 @@ ifeq ($(findstring linux,$(os)),linux)
|
@@ -112,9 +112,11 @@ ifeq ($(findstring linux,$(os)),linux)
|
||||||
ifeq ($(tls), no)
|
ifeq ($(tls), no)
|
||||||
CFLAGS_OS = -D_GNU_SOURCE -DHAVE_IPV6 -DNOT_HAVE_SA_LEN -DUSES_NETLINK -DHAVE_LINUX -DTARGET_OS_LINUX -ftabstop=4 -Wno-expansion-to-defined
|
CFLAGS_OS = -D_GNU_SOURCE -DHAVE_IPV6 -DNOT_HAVE_SA_LEN -DUSES_NETLINK -DHAVE_LINUX -DTARGET_OS_LINUX -ftabstop=4 -Wno-expansion-to-defined
|
||||||
@@ -59,6 +59,3 @@ index 5e74193c0e89..b4313c36b035 100755
|
|||||||
|
|
||||||
$(OBJDIR)/NetMonitor.c.o: $(COREDIR)/mDNS.c # Note: NetMonitor.c textually imports mDNS.c
|
$(OBJDIR)/NetMonitor.c.o: $(COREDIR)/mDNS.c # Note: NetMonitor.c textually imports mDNS.c
|
||||||
|
|
||||||
--
|
|
||||||
2.35.1
|
|
||||||
|
|
||||||
|
|||||||
+12
-15
@@ -15,10 +15,10 @@ Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
|
|||||||
mDNSPosix/mDNSPosix.c | 58 ++++++++++++++++++++++++++++++++-----------
|
mDNSPosix/mDNSPosix.c | 58 ++++++++++++++++++++++++++++++++-----------
|
||||||
1 file changed, 43 insertions(+), 15 deletions(-)
|
1 file changed, 43 insertions(+), 15 deletions(-)
|
||||||
|
|
||||||
diff --git a/mDNSPosix/mDNSPosix.c b/mDNSPosix/mDNSPosix.c
|
Index: mDNSResponder/mDNSPosix/mDNSPosix.c
|
||||||
index 02a19b438e03..e20adda92229 100644
|
===================================================================
|
||||||
--- a/mDNSPosix/mDNSPosix.c
|
--- mDNSResponder.orig/mDNSPosix/mDNSPosix.c
|
||||||
+++ b/mDNSPosix/mDNSPosix.c
|
+++ mDNSResponder/mDNSPosix/mDNSPosix.c
|
||||||
@@ -74,6 +74,14 @@ struct IfChangeRec
|
@@ -74,6 +74,14 @@ struct IfChangeRec
|
||||||
};
|
};
|
||||||
typedef struct IfChangeRec IfChangeRec;
|
typedef struct IfChangeRec IfChangeRec;
|
||||||
@@ -34,7 +34,7 @@ index 02a19b438e03..e20adda92229 100644
|
|||||||
// Note that static data is initialized to zero in (modern) C.
|
// Note that static data is initialized to zero in (modern) C.
|
||||||
static PosixEventSource *gEventSources; // linked list of PosixEventSource's
|
static PosixEventSource *gEventSources; // linked list of PosixEventSource's
|
||||||
static sigset_t gEventSignalSet; // Signals which event loop listens for
|
static sigset_t gEventSignalSet; // Signals which event loop listens for
|
||||||
@@ -1621,6 +1629,23 @@ mDNSlocal mStatus OpenIfNotifySocket(int *pFD)
|
@@ -1621,6 +1629,23 @@ mDNSlocal mStatus OpenIfNotifySocket(int
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -58,7 +58,7 @@ index 02a19b438e03..e20adda92229 100644
|
|||||||
#if MDNS_DEBUGMSGS
|
#if MDNS_DEBUGMSGS
|
||||||
mDNSlocal void PrintNetLinkMsg(const struct nlmsghdr *pNLMsg)
|
mDNSlocal void PrintNetLinkMsg(const struct nlmsghdr *pNLMsg)
|
||||||
{
|
{
|
||||||
@@ -1648,14 +1673,13 @@ mDNSlocal void PrintNetLinkMsg(const struct nlmsghdr *pNLMsg)
|
@@ -1648,14 +1673,13 @@ mDNSlocal void PrintNetLinkMsg(cons
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -74,7 +74,7 @@ index 02a19b438e03..e20adda92229 100644
|
|||||||
|
|
||||||
// The structure here is more complex than it really ought to be because,
|
// The structure here is more complex than it really ought to be because,
|
||||||
// unfortunately, there's no good way to size a buffer in advance large
|
// unfortunately, there's no good way to size a buffer in advance large
|
||||||
@@ -1691,9 +1715,9 @@ mDNSlocal mDNSu32 ProcessRoutingNotification(int sd)
|
@@ -1691,9 +1715,9 @@ mDNSlocal mDNSu32 ProcessRoutingNo
|
||||||
|
|
||||||
// Process the NetLink message
|
// Process the NetLink message
|
||||||
if (pNLMsg->nlmsg_type == RTM_GETLINK || pNLMsg->nlmsg_type == RTM_NEWLINK)
|
if (pNLMsg->nlmsg_type == RTM_GETLINK || pNLMsg->nlmsg_type == RTM_NEWLINK)
|
||||||
@@ -86,7 +86,7 @@ index 02a19b438e03..e20adda92229 100644
|
|||||||
|
|
||||||
// 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)
|
||||||
@@ -1704,8 +1728,6 @@ mDNSlocal mDNSu32 ProcessRoutingNotification(int sd)
|
@@ -1704,8 +1728,6 @@ mDNSlocal mDNSu32 ProcessRoutingNo
|
||||||
else
|
else
|
||||||
break; // all done!
|
break; // all done!
|
||||||
}
|
}
|
||||||
@@ -95,7 +95,7 @@ index 02a19b438e03..e20adda92229 100644
|
|||||||
}
|
}
|
||||||
|
|
||||||
#else // USES_NETLINK
|
#else // USES_NETLINK
|
||||||
@@ -1737,14 +1759,13 @@ mDNSlocal void PrintRoutingSocketMsg(const struct ifa_msghdr *pRSMsg)
|
@@ -1737,14 +1759,13 @@ mDNSlocal void PrintRoutingSocketMs
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -111,7 +111,7 @@ index 02a19b438e03..e20adda92229 100644
|
|||||||
|
|
||||||
readCount = read(sd, buff, sizeof buff);
|
readCount = read(sd, buff, sizeof buff);
|
||||||
if (readCount < (ssize_t) sizeof(struct ifa_msghdr))
|
if (readCount < (ssize_t) sizeof(struct ifa_msghdr))
|
||||||
@@ -1759,12 +1780,10 @@ mDNSlocal mDNSu32 ProcessRoutingNotification(int sd)
|
@@ -1759,12 +1780,10 @@ mDNSlocal mDNSu32 ProcessRoutingNo
|
||||||
pRSMsg->ifam_type == RTM_IFINFO)
|
pRSMsg->ifam_type == RTM_IFINFO)
|
||||||
{
|
{
|
||||||
if (pRSMsg->ifam_type == RTM_IFINFO)
|
if (pRSMsg->ifam_type == RTM_IFINFO)
|
||||||
@@ -126,7 +126,7 @@ index 02a19b438e03..e20adda92229 100644
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif // USES_NETLINK
|
#endif // USES_NETLINK
|
||||||
@@ -1774,7 +1793,8 @@ mDNSlocal void InterfaceChangeCallback(int fd, void *context)
|
@@ -1774,7 +1793,8 @@ mDNSlocal void InterfaceChangeCallback(i
|
||||||
{
|
{
|
||||||
IfChangeRec *pChgRec = (IfChangeRec*) context;
|
IfChangeRec *pChgRec = (IfChangeRec*) context;
|
||||||
fd_set readFDs;
|
fd_set readFDs;
|
||||||
@@ -136,7 +136,7 @@ index 02a19b438e03..e20adda92229 100644
|
|||||||
struct timeval zeroTimeout = { 0, 0 };
|
struct timeval zeroTimeout = { 0, 0 };
|
||||||
|
|
||||||
(void)fd; // Unused
|
(void)fd; // Unused
|
||||||
@@ -1782,17 +1802,25 @@ mDNSlocal void InterfaceChangeCallback(int fd, void *context)
|
@@ -1782,17 +1802,25 @@ mDNSlocal void InterfaceChangeCallback(i
|
||||||
FD_ZERO(&readFDs);
|
FD_ZERO(&readFDs);
|
||||||
FD_SET(pChgRec->NotifySD, &readFDs);
|
FD_SET(pChgRec->NotifySD, &readFDs);
|
||||||
|
|
||||||
@@ -164,6 +164,3 @@ index 02a19b438e03..e20adda92229 100644
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Register with either a Routing Socket or RtNetLink to listen for interface changes.
|
// Register with either a Routing Socket or RtNetLink to listen for interface changes.
|
||||||
--
|
|
||||||
2.35.1
|
|
||||||
|
|
||||||
|
|||||||
+5
-5
@@ -10,11 +10,11 @@ Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
|
|||||||
mDNSCore/mDNS.c | 2 +-
|
mDNSCore/mDNS.c | 2 +-
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
diff --git a/mDNSCore/mDNS.c b/mDNSCore/mDNS.c
|
Index: mDNSResponder/mDNSCore/mDNS.c
|
||||||
index eecd7daa724e..1e843c081938 100644
|
===================================================================
|
||||||
--- a/mDNSCore/mDNS.c
|
--- mDNSResponder.orig/mDNSCore/mDNS.c
|
||||||
+++ b/mDNSCore/mDNS.c
|
+++ mDNSResponder/mDNSCore/mDNS.c
|
||||||
@@ -10210,7 +10210,7 @@ mDNSlocal void mDNSCoreReceiveNoUnicastAnswers(mDNS *const m, const DNSMessage *
|
@@ -10231,7 +10231,7 @@ mDNSlocal void mDNSCoreReceiveNoUnicastA
|
||||||
#else
|
#else
|
||||||
const DNSServRef dnsserv = qptr->qDNSServer;
|
const DNSServRef dnsserv = qptr->qDNSServer;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+7
-10
@@ -27,11 +27,11 @@ Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
|
|||||||
mDNSPosix/mDNSPosix.c | 182 +++++++++++++++++++++++++++++++++++++++---
|
mDNSPosix/mDNSPosix.c | 182 +++++++++++++++++++++++++++++++++++++++---
|
||||||
1 file changed, 172 insertions(+), 10 deletions(-)
|
1 file changed, 172 insertions(+), 10 deletions(-)
|
||||||
|
|
||||||
diff --git a/mDNSPosix/mDNSPosix.c b/mDNSPosix/mDNSPosix.c
|
Index: mDNSResponder/mDNSPosix/mDNSPosix.c
|
||||||
index e20adda92229..5d52de31f79b 100644
|
===================================================================
|
||||||
--- a/mDNSPosix/mDNSPosix.c
|
--- mDNSResponder.orig/mDNSPosix/mDNSPosix.c
|
||||||
+++ b/mDNSPosix/mDNSPosix.c
|
+++ mDNSResponder/mDNSPosix/mDNSPosix.c
|
||||||
@@ -1788,14 +1788,43 @@ mDNSlocal void ProcessRoutingNotification(int sd, GenLinkedList *change
|
@@ -1788,14 +1788,43 @@ mDNSlocal void ProcessRoutingNo
|
||||||
|
|
||||||
#endif // USES_NETLINK
|
#endif // USES_NETLINK
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@ index e20adda92229..5d52de31f79b 100644
|
|||||||
|
|
||||||
(void)fd; // Unused
|
(void)fd; // Unused
|
||||||
|
|
||||||
@@ -1810,12 +1839,149 @@ mDNSlocal void InterfaceChangeCallback(int fd, void *context)
|
@@ -1810,12 +1839,149 @@ mDNSlocal void InterfaceChangeCallback(i
|
||||||
}
|
}
|
||||||
while (0 < select(pChgRec->NotifySD + 1, &readFDs, (fd_set*) NULL, (fd_set*) NULL, &zeroTimeout));
|
while (0 < select(pChgRec->NotifySD + 1, &readFDs, (fd_set*) NULL, (fd_set*) NULL, &zeroTimeout));
|
||||||
|
|
||||||
@@ -230,7 +230,7 @@ index e20adda92229..5d52de31f79b 100644
|
|||||||
while ((changedInterface = (NetworkInterfaceIndex*)changedInterfaces.Head) != NULL)
|
while ((changedInterface = (NetworkInterfaceIndex*)changedInterfaces.Head) != NULL)
|
||||||
{
|
{
|
||||||
RemoveFromList(&changedInterfaces, changedInterface);
|
RemoveFromList(&changedInterfaces, changedInterface);
|
||||||
@@ -1947,15 +2113,11 @@ mDNSexport void mDNSPlatformClose(mDNS *const m)
|
@@ -1947,15 +2113,11 @@ mDNSexport void mDNSPlatformClose(mDNS *
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -247,6 +247,3 @@ index e20adda92229..5d52de31f79b 100644
|
|||||||
ClearInterfaceList(m);
|
ClearInterfaceList(m);
|
||||||
err = SetupInterfaceList(m);
|
err = SetupInterfaceList(m);
|
||||||
return PosixErrorToStatus(err);
|
return PosixErrorToStatus(err);
|
||||||
--
|
|
||||||
2.35.1
|
|
||||||
|
|
||||||
|
|||||||
@@ -12,14 +12,10 @@ Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
|
|||||||
1 file changed, 2 insertions(+)
|
1 file changed, 2 insertions(+)
|
||||||
create mode 100644 Makefile
|
create mode 100644 Makefile
|
||||||
|
|
||||||
diff --git a/Makefile b/Makefile
|
Index: mDNSResponder/Makefile
|
||||||
new file mode 100644
|
===================================================================
|
||||||
index 000000000000..feb6ac67ef47
|
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/Makefile
|
+++ mDNSResponder/Makefile
|
||||||
@@ -0,0 +1,2 @@
|
@@ -0,0 +1,2 @@
|
||||||
+all clean:
|
+all clean:
|
||||||
+ cd mDNSPosix && $(MAKE) $@
|
+ cd mDNSPosix && $(MAKE) $@
|
||||||
--
|
|
||||||
2.35.1
|
|
||||||
|
|
||||||
|
|||||||
+5
-8
@@ -22,11 +22,11 @@ Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
|
|||||||
mDNSPosix/mDNSPosix.c | 2 +-
|
mDNSPosix/mDNSPosix.c | 2 +-
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
diff --git a/mDNSPosix/mDNSPosix.c b/mDNSPosix/mDNSPosix.c
|
Index: mDNSResponder/mDNSPosix/mDNSPosix.c
|
||||||
index 5d52de31f79b..77d982f4c50b 100644
|
===================================================================
|
||||||
--- a/mDNSPosix/mDNSPosix.c
|
--- mDNSResponder.orig/mDNSPosix/mDNSPosix.c
|
||||||
+++ b/mDNSPosix/mDNSPosix.c
|
+++ mDNSResponder/mDNSPosix/mDNSPosix.c
|
||||||
@@ -1714,7 +1714,7 @@ mDNSlocal void ProcessRoutingNotification(int sd, GenLinkedList *change
|
@@ -1714,7 +1714,7 @@ mDNSlocal void ProcessRoutingNo
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Process the NetLink message
|
// Process the NetLink message
|
||||||
@@ -35,6 +35,3 @@ index 5d52de31f79b..77d982f4c50b 100644
|
|||||||
AddInterfaceIndexToList(changedInterfaces, ((struct ifinfomsg*) NLMSG_DATA(pNLMsg))->ifi_index);
|
AddInterfaceIndexToList(changedInterfaces, ((struct ifinfomsg*) NLMSG_DATA(pNLMsg))->ifi_index);
|
||||||
else if (pNLMsg->nlmsg_type == RTM_DELADDR || pNLMsg->nlmsg_type == RTM_NEWADDR)
|
else if (pNLMsg->nlmsg_type == RTM_DELADDR || pNLMsg->nlmsg_type == RTM_NEWADDR)
|
||||||
AddInterfaceIndexToList(changedInterfaces, ((struct ifaddrmsg*) NLMSG_DATA(pNLMsg))->ifa_index);
|
AddInterfaceIndexToList(changedInterfaces, ((struct ifaddrmsg*) NLMSG_DATA(pNLMsg))->ifa_index);
|
||||||
--
|
|
||||||
2.35.1
|
|
||||||
|
|
||||||
|
|||||||
+8
-11
@@ -14,11 +14,11 @@ Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
|
|||||||
mDNSPosix/mDNSPosix.c | 12 +++++++++---
|
mDNSPosix/mDNSPosix.c | 12 +++++++++---
|
||||||
1 file changed, 9 insertions(+), 3 deletions(-)
|
1 file changed, 9 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
diff --git a/mDNSPosix/mDNSPosix.c b/mDNSPosix/mDNSPosix.c
|
Index: mDNSResponder/mDNSPosix/mDNSPosix.c
|
||||||
index 77d982f4c50b..cab512160afb 100644
|
===================================================================
|
||||||
--- a/mDNSPosix/mDNSPosix.c
|
--- mDNSResponder.orig/mDNSPosix/mDNSPosix.c
|
||||||
+++ b/mDNSPosix/mDNSPosix.c
|
+++ mDNSResponder/mDNSPosix/mDNSPosix.c
|
||||||
@@ -1677,7 +1677,7 @@ mDNSlocal void ProcessRoutingNotification(int sd, GenLinkedList *change
|
@@ -1677,7 +1677,7 @@ mDNSlocal void ProcessRoutingNo
|
||||||
// Read through the messages on sd and if any indicate that any interface records should
|
// Read through the messages on sd and if any indicate that any interface records should
|
||||||
// be torn down and rebuilt, return affected indices as a bitmask. Otherwise return 0.
|
// be torn down and rebuilt, return affected indices as a bitmask. Otherwise return 0.
|
||||||
{
|
{
|
||||||
@@ -27,7 +27,7 @@ index 77d982f4c50b..cab512160afb 100644
|
|||||||
char buff[4096];
|
char buff[4096];
|
||||||
struct nlmsghdr *pNLMsg = (struct nlmsghdr*) buff;
|
struct nlmsghdr *pNLMsg = (struct nlmsghdr*) buff;
|
||||||
|
|
||||||
@@ -1686,7 +1686,10 @@ mDNSlocal void ProcessRoutingNotification(int sd, GenLinkedList *change
|
@@ -1686,7 +1686,10 @@ mDNSlocal void ProcessRoutingNo
|
||||||
// enough to hold all pending data and so avoid message fragmentation.
|
// enough to hold all pending data and so avoid message fragmentation.
|
||||||
// (Note that FIONREAD is not supported on AF_NETLINK.)
|
// (Note that FIONREAD is not supported on AF_NETLINK.)
|
||||||
|
|
||||||
@@ -39,7 +39,7 @@ index 77d982f4c50b..cab512160afb 100644
|
|||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
// Make sure we've got an entire nlmsghdr in the buffer, and payload, too.
|
// Make sure we've got an entire nlmsghdr in the buffer, and payload, too.
|
||||||
@@ -1702,7 +1705,9 @@ mDNSlocal void ProcessRoutingNotification(int sd, GenLinkedList *change
|
@@ -1702,7 +1705,9 @@ mDNSlocal void ProcessRoutingNo
|
||||||
pNLMsg = (struct nlmsghdr*) buff;
|
pNLMsg = (struct nlmsghdr*) buff;
|
||||||
|
|
||||||
// read more data
|
// read more data
|
||||||
@@ -50,7 +50,7 @@ index 77d982f4c50b..cab512160afb 100644
|
|||||||
continue; // spin around and revalidate with new readCount
|
continue; // spin around and revalidate with new readCount
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -2017,6 +2022,7 @@ mDNSlocal mDNSBool mDNSPlatformInit_CanReceiveUnicast(void)
|
@@ -2017,6 +2022,7 @@ mDNSlocal mDNSBool mDNSPlatformInit_CanR
|
||||||
int err;
|
int err;
|
||||||
int s = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
|
int s = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
|
||||||
struct sockaddr_in s5353;
|
struct sockaddr_in s5353;
|
||||||
@@ -58,6 +58,3 @@ index 77d982f4c50b..cab512160afb 100644
|
|||||||
s5353.sin_family = AF_INET;
|
s5353.sin_family = AF_INET;
|
||||||
s5353.sin_port = MulticastDNSPort.NotAnInteger;
|
s5353.sin_port = MulticastDNSPort.NotAnInteger;
|
||||||
s5353.sin_addr.s_addr = 0;
|
s5353.sin_addr.s_addr = 0;
|
||||||
--
|
|
||||||
2.35.1
|
|
||||||
|
|
||||||
|
|||||||
@@ -14,20 +14,18 @@ Signed-off-by: Beniamin Sandu <beniaminsandu@gmail.com>
|
|||||||
mDNSPosix/mbedtls.c | 2 --
|
mDNSPosix/mbedtls.c | 2 --
|
||||||
1 file changed, 2 deletions(-)
|
1 file changed, 2 deletions(-)
|
||||||
|
|
||||||
diff --git a/mDNSPosix/mbedtls.c b/mDNSPosix/mbedtls.c
|
Index: mDNSResponder/mDNSPosix/mbedtls.c
|
||||||
index a73681b..ab8f8c7 100644
|
===================================================================
|
||||||
--- a/mDNSPosix/mbedtls.c
|
--- mDNSResponder.orig/mDNSPosix/mbedtls.c
|
||||||
+++ b/mDNSPosix/mbedtls.c
|
+++ mDNSResponder/mDNSPosix/mbedtls.c
|
||||||
@@ -38,10 +38,8 @@
|
@@ -38,10 +38,8 @@
|
||||||
#include <mbedtls/sha256.h>
|
#include <mbedtls/sha256.h>
|
||||||
#include <mbedtls/base64.h>
|
#include <mbedtls/base64.h>
|
||||||
|
|
||||||
-#include <mbedtls/certs.h>
|
-#include <mbedtls/certs.h>
|
||||||
#include <mbedtls/x509.h>
|
#include <mbedtls/x509.h>
|
||||||
#include <mbedtls/ssl.h>
|
#include <mbedtls/ssl.h>
|
||||||
-#include <mbedtls/config.h>
|
-#include <mbedtls/config.h>
|
||||||
|
|
||||||
// Posix TLS server context
|
// Posix TLS server context
|
||||||
struct TLSContext_struct {
|
struct TLSContext_struct {
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|||||||
@@ -9,10 +9,10 @@ Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
|
|||||||
mDNSShared/PlatformCommon.c | 1 +
|
mDNSShared/PlatformCommon.c | 1 +
|
||||||
1 file changed, 1 insertion(+)
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
diff --git a/mDNSShared/PlatformCommon.c b/mDNSShared/PlatformCommon.c
|
Index: mDNSResponder/mDNSShared/PlatformCommon.c
|
||||||
index 9ce15468e217..c308af3e8b0e 100644
|
===================================================================
|
||||||
--- a/mDNSShared/PlatformCommon.c
|
--- mDNSResponder.orig/mDNSShared/PlatformCommon.c
|
||||||
+++ b/mDNSShared/PlatformCommon.c
|
+++ mDNSResponder/mDNSShared/PlatformCommon.c
|
||||||
@@ -32,6 +32,7 @@
|
@@ -32,6 +32,7 @@
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <sys/time.h> // Needed for #include <sys/time.h>().
|
#include <sys/time.h> // Needed for #include <sys/time.h>().
|
||||||
|
|||||||
+2
-2
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=31c50371921e0fb731003bbc665f29bf"
|
|||||||
|
|
||||||
DEPENDS:append:libc-musl = " musl-nscd"
|
DEPENDS:append:libc-musl = " musl-nscd"
|
||||||
|
|
||||||
SRC_URI = "git://github.com/apple-oss-distributions/mDNSResponder;protocol=https;branch=main \
|
SRC_URI = "git://github.com/apple-oss-distributions/mDNSResponder;protocol=https;branch=rel/mDNSResponder-2200 \
|
||||||
file://0001-dns-sd-Include-missing-headers.patch \
|
file://0001-dns-sd-Include-missing-headers.patch \
|
||||||
file://0002-make-Set-libdns_sd.so-soname-correctly.patch \
|
file://0002-make-Set-libdns_sd.so-soname-correctly.patch \
|
||||||
file://0004-make-Separate-TLS-targets-from-libraries.patch \
|
file://0004-make-Separate-TLS-targets-from-libraries.patch \
|
||||||
@@ -25,7 +25,7 @@ SRC_URI = "git://github.com/apple-oss-distributions/mDNSResponder;protocol=https
|
|||||||
file://0015-Add-missing-limits.h.patch \
|
file://0015-Add-missing-limits.h.patch \
|
||||||
file://0001-Handle-interface-without-ifa_addr.patch \
|
file://0001-Handle-interface-without-ifa_addr.patch \
|
||||||
"
|
"
|
||||||
SRCREV = "d5029b5dff8aa59d1fc07ed796e994106ef58dee"
|
SRCREV = "a9f4049ab772ca57b5afc9804ae5004beb711d6e"
|
||||||
|
|
||||||
# We install a stub Makefile in the top directory so that the various checks
|
# We install a stub Makefile in the top directory so that the various checks
|
||||||
# in base.bbclass pass their tests for a Makefile, this ensures (that amongst
|
# in base.bbclass pass their tests for a Makefile, this ensures (that amongst
|
||||||
Reference in New Issue
Block a user