diff options
author | Alex Kiernan <alex.kiernan@gmail.com> | 2024-06-05 16:04:00 +0000 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-06-07 09:11:54 -0700 |
commit | db6540fee146e0c82de1433fc4cd624b8601f4be (patch) | |
tree | de1acd304514f296524959a9e232b8c2ea086b00 | |
parent | bfc372f8c49e735782287197c2ec78bb5d233342 (diff) | |
download | meta-openembedded-db6540fee146e0c82de1433fc4cd624b8601f4be.tar.gz |
mdns: Upgrade 2200.100.94.0.2 -> 2200.120.24
Drop 0015-Add-missing-limits.h.patch (equivalent patch merged upstream),
rebase other patches.
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
18 files changed, 122 insertions, 149 deletions
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0001-Create-subroutine-for-cleaning-recent-interfaces.patch b/meta-networking/recipes-protocols/mdns/mdns/0001-Create-subroutine-for-cleaning-recent-interfaces.patch index f5d424d58..68a395d69 100644 --- a/meta-networking/recipes-protocols/mdns/mdns/0001-Create-subroutine-for-cleaning-recent-interfaces.patch +++ b/meta-networking/recipes-protocols/mdns/mdns/0001-Create-subroutine-for-cleaning-recent-interfaces.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From c1f3e19d3cb0aa948248616eb1684a1e80aa39b4 Mon Sep 17 00:00:00 2001 | 1 | From 1fefe289d0c907392382eb2fa2f1f0ecac02f85d Mon Sep 17 00:00:00 2001 |
2 | From: Nate Karstens <nate.karstens@garmin.com> | 2 | From: Nate Karstens <nate.karstens@garmin.com> |
3 | Date: Wed, 28 Jun 2017 17:30:00 -0500 | 3 | Date: Wed, 28 Jun 2017 17:30:00 -0500 |
4 | Subject: [PATCH 1/8] Create subroutine for cleaning recent interfaces | 4 | Subject: [PATCH] Create subroutine for cleaning recent interfaces |
5 | 5 | ||
6 | Moves functionality for cleaning the list of recent | 6 | Moves functionality for cleaning the list of recent |
7 | interfaces into its own subroutine. | 7 | interfaces into its own subroutine. |
@@ -14,11 +14,11 @@ Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> | |||
14 | mDNSPosix/mDNSPosix.c | 24 ++++++++++++++---------- | 14 | mDNSPosix/mDNSPosix.c | 24 ++++++++++++++---------- |
15 | 1 file changed, 14 insertions(+), 10 deletions(-) | 15 | 1 file changed, 14 insertions(+), 10 deletions(-) |
16 | 16 | ||
17 | Index: mDNSResponder/mDNSPosix/mDNSPosix.c | 17 | diff --git a/mDNSPosix/mDNSPosix.c b/mDNSPosix/mDNSPosix.c |
18 | =================================================================== | 18 | index 3b761d04e3c4..5aa220cf694e 100644 |
19 | --- mDNSResponder.orig/mDNSPosix/mDNSPosix.c | 19 | --- a/mDNSPosix/mDNSPosix.c |
20 | +++ mDNSResponder/mDNSPosix/mDNSPosix.c | 20 | +++ b/mDNSPosix/mDNSPosix.c |
21 | @@ -1322,6 +1322,19 @@ mDNSlocal int SetupSocket(struct sockadd | 21 | @@ -1322,6 +1322,19 @@ mDNSlocal int SetupSocket(struct sockaddr *intfAddr, mDNSIPPort port, int interf |
22 | return err; | 22 | return err; |
23 | } | 23 | } |
24 | 24 | ||
@@ -38,7 +38,7 @@ Index: mDNSResponder/mDNSPosix/mDNSPosix.c | |||
38 | // Creates a PosixNetworkInterface for the interface whose IP address is | 38 | // Creates a PosixNetworkInterface for the interface whose IP address is |
39 | // intfAddr and whose name is intfName and registers it with mDNS core. | 39 | // intfAddr and whose name is intfName and registers it with mDNS core. |
40 | mDNSlocal int SetupOneInterface(mDNS *const m, struct sockaddr *intfAddr, struct sockaddr *intfMask, | 40 | mDNSlocal int SetupOneInterface(mDNS *const m, struct sockaddr *intfAddr, struct sockaddr *intfMask, |
41 | @@ -1559,16 +1572,7 @@ mDNSlocal int SetupInterfaceList(mDNS *c | 41 | @@ -1559,16 +1572,7 @@ mDNSlocal int SetupInterfaceList(mDNS *const m) |
42 | 42 | ||
43 | // Clean up. | 43 | // Clean up. |
44 | if (intfList != NULL) freeifaddrs(intfList); | 44 | if (intfList != NULL) freeifaddrs(intfList); |
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0001-Fix-SIGSEGV-during-DumpStateLog.patch b/meta-networking/recipes-protocols/mdns/mdns/0001-Fix-SIGSEGV-during-DumpStateLog.patch index 4b0227f1d..abf82b1e0 100644 --- a/meta-networking/recipes-protocols/mdns/mdns/0001-Fix-SIGSEGV-during-DumpStateLog.patch +++ b/meta-networking/recipes-protocols/mdns/mdns/0001-Fix-SIGSEGV-during-DumpStateLog.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 14cc53bb09a3d8adf301f3842c765598467e63e1 Mon Sep 17 00:00:00 2001 | 1 | From 2db1f5bc941e4b4cd1721e361a47cfe288b07a76 Mon Sep 17 00:00:00 2001 |
2 | From: Alex Kiernan <alex.kiernan@gmail.com> | 2 | From: Alex Kiernan <alex.kiernan@gmail.com> |
3 | Date: Thu, 1 Feb 2024 14:07:03 +0000 | 3 | Date: Thu, 1 Feb 2024 14:07:03 +0000 |
4 | Subject: [PATCH] Fix SIGSEGV during DumpStateLog() | 4 | Subject: [PATCH] Fix SIGSEGV during DumpStateLog() |
@@ -25,6 +25,3 @@ index 7a4ca19eff6d..d449dde320f6 100644 | |||
25 | { | 25 | { |
26 | return; | 26 | return; |
27 | } | 27 | } |
28 | -- | ||
29 | 2.39.0 | ||
30 | |||
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0001-Handle-interface-without-ifa_addr.patch b/meta-networking/recipes-protocols/mdns/mdns/0001-Handle-interface-without-ifa_addr.patch index 7e76f07c0..7ec599601 100644 --- a/meta-networking/recipes-protocols/mdns/mdns/0001-Handle-interface-without-ifa_addr.patch +++ b/meta-networking/recipes-protocols/mdns/mdns/0001-Handle-interface-without-ifa_addr.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 1cc54320306e07c1fc0eed98e7fbcbb07a2f3b28 Mon Sep 17 00:00:00 2001 | 1 | From c67102307f25c5f4d238c736e90519e56a76ae79 Mon Sep 17 00:00:00 2001 |
2 | From: Stefan Agner <stefan@agner.ch> | 2 | From: Stefan Agner <stefan@agner.ch> |
3 | Date: Fri, 23 Jun 2023 10:10:00 +0200 | 3 | Date: Fri, 23 Jun 2023 10:10:00 +0200 |
4 | Subject: [PATCH] Handle interface without `ifa_addr` | 4 | Subject: [PATCH] Handle interface without `ifa_addr` |
@@ -14,11 +14,11 @@ Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> | |||
14 | mDNSPosix/mDNSPosix.c | 4 +++- | 14 | mDNSPosix/mDNSPosix.c | 4 +++- |
15 | 1 file changed, 3 insertions(+), 1 deletion(-) | 15 | 1 file changed, 3 insertions(+), 1 deletion(-) |
16 | 16 | ||
17 | Index: mDNSResponder/mDNSPosix/mDNSPosix.c | 17 | diff --git a/mDNSPosix/mDNSPosix.c b/mDNSPosix/mDNSPosix.c |
18 | =================================================================== | 18 | index 0c9dd2582660..c3ead26799e6 100644 |
19 | --- mDNSResponder.orig/mDNSPosix/mDNSPosix.c | 19 | --- a/mDNSPosix/mDNSPosix.c |
20 | +++ mDNSResponder/mDNSPosix/mDNSPosix.c | 20 | +++ b/mDNSPosix/mDNSPosix.c |
21 | @@ -1895,6 +1895,7 @@ mDNSlocal void InterfaceChangeCallback(i | 21 | @@ -1895,6 +1895,7 @@ mDNSlocal void InterfaceChangeCallback(int fd, void *context) |
22 | continue; | 22 | continue; |
23 | 23 | ||
24 | if ((ifa_loop4 == NULL) && | 24 | if ((ifa_loop4 == NULL) && |
@@ -26,7 +26,7 @@ Index: mDNSResponder/mDNSPosix/mDNSPosix.c | |||
26 | ((*ifi)->ifa_addr->sa_family == AF_INET) && | 26 | ((*ifi)->ifa_addr->sa_family == AF_INET) && |
27 | ((*ifi)->ifa_flags & IFF_UP) && | 27 | ((*ifi)->ifa_flags & IFF_UP) && |
28 | ((*ifi)->ifa_flags & IFF_LOOPBACK)) | 28 | ((*ifi)->ifa_flags & IFF_LOOPBACK)) |
29 | @@ -1903,7 +1904,8 @@ mDNSlocal void InterfaceChangeCallback(i | 29 | @@ -1903,7 +1904,8 @@ mDNSlocal void InterfaceChangeCallback(int fd, void *context) |
30 | continue; | 30 | continue; |
31 | } | 31 | } |
32 | 32 | ||
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0001-dns-sd-Include-missing-headers.patch b/meta-networking/recipes-protocols/mdns/mdns/0001-dns-sd-Include-missing-headers.patch index 82825b294..0dc36ae1d 100644 --- a/meta-networking/recipes-protocols/mdns/mdns/0001-dns-sd-Include-missing-headers.patch +++ b/meta-networking/recipes-protocols/mdns/mdns/0001-dns-sd-Include-missing-headers.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From cea342c10731cb1c8c8b52f03d55f9d15fc3b091 Mon Sep 17 00:00:00 2001 | 1 | From a5fe20fa00088683136a09a4da3c36d9b20fe1b9 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Thu, 4 Nov 2021 07:31:32 -0700 | 3 | Date: Thu, 4 Nov 2021 07:31:32 -0700 |
4 | Subject: [PATCH 1/6] dns-sd: Include missing headers | 4 | Subject: [PATCH] dns-sd: Include missing headers |
5 | 5 | ||
6 | Fixes build on Musl | 6 | Fixes build on Musl |
7 | 7 | ||
@@ -11,10 +11,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
11 | mDNSPosix/nss_mdns.c | 3 +++ | 11 | mDNSPosix/nss_mdns.c | 3 +++ |
12 | 1 file changed, 3 insertions(+) | 12 | 1 file changed, 3 insertions(+) |
13 | 13 | ||
14 | Index: mDNSResponder/mDNSPosix/nss_mdns.c | 14 | diff --git a/mDNSPosix/nss_mdns.c b/mDNSPosix/nss_mdns.c |
15 | =================================================================== | 15 | index afadb3c6c33b..84c312759463 100644 |
16 | --- mDNSResponder.orig/mDNSPosix/nss_mdns.c | 16 | --- a/mDNSPosix/nss_mdns.c |
17 | +++ mDNSResponder/mDNSPosix/nss_mdns.c | 17 | +++ b/mDNSPosix/nss_mdns.c |
18 | @@ -89,6 +89,9 @@ | 18 | @@ -89,6 +89,9 @@ |
19 | 19 | ||
20 | #include <dns_sd.h> | 20 | #include <dns_sd.h> |
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0002-Create-subroutine-for-tearing-down-an-interface.patch b/meta-networking/recipes-protocols/mdns/mdns/0002-Create-subroutine-for-tearing-down-an-interface.patch index 867db88a5..5ce7eb101 100644 --- a/meta-networking/recipes-protocols/mdns/mdns/0002-Create-subroutine-for-tearing-down-an-interface.patch +++ b/meta-networking/recipes-protocols/mdns/mdns/0002-Create-subroutine-for-tearing-down-an-interface.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 40ef0241afbb49f84e76afd65eb3ee17466bb582 Mon Sep 17 00:00:00 2001 | 1 | From d265ac9346d3dcbcf1187134318baafcfa75c054 Mon Sep 17 00:00:00 2001 |
2 | From: Nate Karstens <nate.karstens@garmin.com> | 2 | From: Nate Karstens <nate.karstens@garmin.com> |
3 | Date: Wed, 28 Jun 2017 17:30:00 -0500 | 3 | Date: Wed, 28 Jun 2017 17:30:00 -0500 |
4 | Subject: [PATCH 2/8] Create subroutine for tearing down an interface | 4 | Subject: [PATCH] Create subroutine for tearing down an interface |
5 | 5 | ||
6 | Creates a subroutine for tearing down an interface. | 6 | Creates a subroutine for tearing down an interface. |
7 | 7 | ||
@@ -13,11 +13,11 @@ Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> | |||
13 | mDNSPosix/mDNSPosix.c | 22 ++++++++++++++++------ | 13 | mDNSPosix/mDNSPosix.c | 22 ++++++++++++++++------ |
14 | 1 file changed, 16 insertions(+), 6 deletions(-) | 14 | 1 file changed, 16 insertions(+), 6 deletions(-) |
15 | 15 | ||
16 | Index: mDNSResponder/mDNSPosix/mDNSPosix.c | 16 | diff --git a/mDNSPosix/mDNSPosix.c b/mDNSPosix/mDNSPosix.c |
17 | =================================================================== | 17 | index 5aa220cf694e..a6041b04a21e 100644 |
18 | --- mDNSResponder.orig/mDNSPosix/mDNSPosix.c | 18 | --- a/mDNSPosix/mDNSPosix.c |
19 | +++ mDNSResponder/mDNSPosix/mDNSPosix.c | 19 | +++ b/mDNSPosix/mDNSPosix.c |
20 | @@ -1043,6 +1043,19 @@ mDNSlocal void FreePosixNetworkInterface | 20 | @@ -1043,6 +1043,19 @@ mDNSlocal void FreePosixNetworkInterface(PosixNetworkInterface *intf) |
21 | gRecentInterfaces = intf; | 21 | gRecentInterfaces = intf; |
22 | } | 22 | } |
23 | 23 | ||
@@ -37,7 +37,7 @@ Index: mDNSResponder/mDNSPosix/mDNSPosix.c | |||
37 | // Grab the first interface, deregister it, free it, and repeat until done. | 37 | // Grab the first interface, deregister it, free it, and repeat until done. |
38 | mDNSlocal void ClearInterfaceList(mDNS *const m) | 38 | mDNSlocal void ClearInterfaceList(mDNS *const m) |
39 | { | 39 | { |
40 | @@ -1051,13 +1064,10 @@ mDNSlocal void ClearInterfaceList(mDNS * | 40 | @@ -1051,13 +1064,10 @@ mDNSlocal void ClearInterfaceList(mDNS *const m) |
41 | while (m->HostInterfaces) | 41 | while (m->HostInterfaces) |
42 | { | 42 | { |
43 | PosixNetworkInterface *intf = (PosixNetworkInterface*)(m->HostInterfaces); | 43 | PosixNetworkInterface *intf = (PosixNetworkInterface*)(m->HostInterfaces); |
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0002-make-Set-libdns_sd.so-soname-correctly.patch b/meta-networking/recipes-protocols/mdns/mdns/0002-make-Set-libdns_sd.so-soname-correctly.patch index 03fb1bc0d..86b659f8a 100644 --- a/meta-networking/recipes-protocols/mdns/mdns/0002-make-Set-libdns_sd.so-soname-correctly.patch +++ b/meta-networking/recipes-protocols/mdns/mdns/0002-make-Set-libdns_sd.so-soname-correctly.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From a198bcd457abd04f2e22812ff3a37246aa564614 Mon Sep 17 00:00:00 2001 | 1 | From dfa9e2c494d1a834f5bdfe4dc24e8329dd8720eb Mon Sep 17 00:00:00 2001 |
2 | From: Alex Kiernan <alex.kiernan@gmail.com> | 2 | From: Alex Kiernan <alex.kiernan@gmail.com> |
3 | Date: Mon, 5 Dec 2022 15:14:12 +0000 | 3 | Date: Mon, 5 Dec 2022 15:14:12 +0000 |
4 | Subject: [PATCH 2/6] make: Set libdns_sd.so soname correctly | 4 | Subject: [PATCH] make: Set libdns_sd.so soname correctly |
5 | 5 | ||
6 | Upstream-Status: Pending | 6 | Upstream-Status: Pending |
7 | Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> | 7 | Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> |
@@ -9,11 +9,11 @@ Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> | |||
9 | mDNSPosix/Makefile | 2 +- | 9 | mDNSPosix/Makefile | 2 +- |
10 | 1 file changed, 1 insertion(+), 1 deletion(-) | 10 | 1 file changed, 1 insertion(+), 1 deletion(-) |
11 | 11 | ||
12 | Index: mDNSResponder/mDNSPosix/Makefile | 12 | diff --git a/mDNSPosix/Makefile b/mDNSPosix/Makefile |
13 | =================================================================== | 13 | index 041706523139..c877c8bb19e6 100755 |
14 | --- mDNSResponder.orig/mDNSPosix/Makefile | 14 | --- a/mDNSPosix/Makefile |
15 | +++ mDNSResponder/mDNSPosix/Makefile | 15 | +++ b/mDNSPosix/Makefile |
16 | @@ -276,7 +276,7 @@ libdns_sd: setup $(BUILDDIR)/libdns_sd.$ | 16 | @@ -276,7 +276,7 @@ libdns_sd: setup $(BUILDDIR)/libdns_sd.$(LDSUFFIX) |
17 | 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 | 17 | 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 |
18 | 18 | ||
19 | $(BUILDDIR)/libdns_sd.$(LDSUFFIX): $(CLIENTLIBOBJS) | 19 | $(BUILDDIR)/libdns_sd.$(LDSUFFIX): $(CLIENTLIBOBJS) |
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0003-Track-interface-socket-family.patch b/meta-networking/recipes-protocols/mdns/mdns/0003-Track-interface-socket-family.patch index f1cda2b89..59871eb66 100644 --- a/meta-networking/recipes-protocols/mdns/mdns/0003-Track-interface-socket-family.patch +++ b/meta-networking/recipes-protocols/mdns/mdns/0003-Track-interface-socket-family.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From deb3a2c51f32e0d2741be11a492e727129f770e2 Mon Sep 17 00:00:00 2001 | 1 | From 5f58e5671cd6dbd4cb49bd30fb606d430b626361 Mon Sep 17 00:00:00 2001 |
2 | From: Nate Karstens <nate.karstens@garmin.com> | 2 | From: Nate Karstens <nate.karstens@garmin.com> |
3 | Date: Wed, 28 Jun 2017 17:30:00 -0500 | 3 | Date: Wed, 28 Jun 2017 17:30:00 -0500 |
4 | Subject: [PATCH 3/8] Track interface socket family | 4 | Subject: [PATCH] Track interface socket family |
5 | 5 | ||
6 | Tracks the socket family associated with the interface. | 6 | Tracks the socket family associated with the interface. |
7 | 7 | ||
@@ -14,11 +14,11 @@ Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> | |||
14 | mDNSPosix/mDNSPosix.h | 2 ++ | 14 | mDNSPosix/mDNSPosix.h | 2 ++ |
15 | 2 files changed, 3 insertions(+) | 15 | 2 files changed, 3 insertions(+) |
16 | 16 | ||
17 | Index: mDNSResponder/mDNSPosix/mDNSPosix.c | 17 | diff --git a/mDNSPosix/mDNSPosix.c b/mDNSPosix/mDNSPosix.c |
18 | =================================================================== | 18 | index a6041b04a21e..15bbecee04a4 100644 |
19 | --- mDNSResponder.orig/mDNSPosix/mDNSPosix.c | 19 | --- a/mDNSPosix/mDNSPosix.c |
20 | +++ mDNSResponder/mDNSPosix/mDNSPosix.c | 20 | +++ b/mDNSPosix/mDNSPosix.c |
21 | @@ -1415,6 +1415,7 @@ mDNSlocal int SetupOneInterface(mDNS *co | 21 | @@ -1415,6 +1415,7 @@ mDNSlocal int SetupOneInterface(mDNS *const m, struct sockaddr *intfAddr, struct |
22 | // Set up the extra fields in PosixNetworkInterface. | 22 | // Set up the extra fields in PosixNetworkInterface. |
23 | assert(intf->intfName != NULL); // intf->intfName already set up above | 23 | assert(intf->intfName != NULL); // intf->intfName already set up above |
24 | intf->index = intfIndex; | 24 | intf->index = intfIndex; |
@@ -26,10 +26,10 @@ Index: mDNSResponder/mDNSPosix/mDNSPosix.c | |||
26 | intf->multicastSocket4 = -1; | 26 | intf->multicastSocket4 = -1; |
27 | #if HAVE_IPV6 | 27 | #if HAVE_IPV6 |
28 | intf->multicastSocket6 = -1; | 28 | intf->multicastSocket6 = -1; |
29 | Index: mDNSResponder/mDNSPosix/mDNSPosix.h | 29 | diff --git a/mDNSPosix/mDNSPosix.h b/mDNSPosix/mDNSPosix.h |
30 | =================================================================== | 30 | index 9675591b0434..dd7864cd0d5e 100644 |
31 | --- mDNSResponder.orig/mDNSPosix/mDNSPosix.h | 31 | --- a/mDNSPosix/mDNSPosix.h |
32 | +++ mDNSResponder/mDNSPosix/mDNSPosix.h | 32 | +++ b/mDNSPosix/mDNSPosix.h |
33 | @@ -19,6 +19,7 @@ | 33 | @@ -19,6 +19,7 @@ |
34 | #define __mDNSPlatformPosix_h | 34 | #define __mDNSPlatformPosix_h |
35 | 35 | ||
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0004-Indicate-loopback-interface-to-mDNS-core.patch b/meta-networking/recipes-protocols/mdns/mdns/0004-Indicate-loopback-interface-to-mDNS-core.patch index 6bc36456f..bf2b85c2a 100644 --- a/meta-networking/recipes-protocols/mdns/mdns/0004-Indicate-loopback-interface-to-mDNS-core.patch +++ b/meta-networking/recipes-protocols/mdns/mdns/0004-Indicate-loopback-interface-to-mDNS-core.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From beab76b5708862f44d9acbe7a92db45e2f99259f Mon Sep 17 00:00:00 2001 | 1 | From 935033dd40772240c9bcc6b9610d78eb3753bfaf Mon Sep 17 00:00:00 2001 |
2 | From: Nate Karstens <nate.karstens@garmin.com> | 2 | From: Nate Karstens <nate.karstens@garmin.com> |
3 | Date: Tue, 1 Aug 2017 17:06:01 -0500 | 3 | Date: Tue, 1 Aug 2017 17:06:01 -0500 |
4 | Subject: [PATCH 4/8] Indicate loopback interface to mDNS core | 4 | Subject: [PATCH] Indicate loopback interface to mDNS core |
5 | 5 | ||
6 | Tells the mDNS core if an interface is a loopback interface, | 6 | Tells the mDNS core if an interface is a loopback interface, |
7 | similar to AddInterfaceToList() in the MacOS implementation. | 7 | similar to AddInterfaceToList() in the MacOS implementation. |
@@ -14,11 +14,11 @@ Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> | |||
14 | mDNSPosix/mDNSPosix.c | 7 ++++--- | 14 | mDNSPosix/mDNSPosix.c | 7 ++++--- |
15 | 1 file changed, 4 insertions(+), 3 deletions(-) | 15 | 1 file changed, 4 insertions(+), 3 deletions(-) |
16 | 16 | ||
17 | Index: mDNSResponder/mDNSPosix/mDNSPosix.c | 17 | diff --git a/mDNSPosix/mDNSPosix.c b/mDNSPosix/mDNSPosix.c |
18 | =================================================================== | 18 | index 15bbecee04a4..f4c31a07d587 100644 |
19 | --- mDNSResponder.orig/mDNSPosix/mDNSPosix.c | 19 | --- a/mDNSPosix/mDNSPosix.c |
20 | +++ mDNSResponder/mDNSPosix/mDNSPosix.c | 20 | +++ b/mDNSPosix/mDNSPosix.c |
21 | @@ -1348,7 +1348,7 @@ mDNSlocal void CleanRecentInterfaces(voi | 21 | @@ -1348,7 +1348,7 @@ mDNSlocal void CleanRecentInterfaces(void) |
22 | // Creates a PosixNetworkInterface for the interface whose IP address is | 22 | // Creates a PosixNetworkInterface for the interface whose IP address is |
23 | // intfAddr and whose name is intfName and registers it with mDNS core. | 23 | // intfAddr and whose name is intfName and registers it with mDNS core. |
24 | mDNSlocal int SetupOneInterface(mDNS *const m, struct sockaddr *intfAddr, struct sockaddr *intfMask, | 24 | mDNSlocal int SetupOneInterface(mDNS *const m, struct sockaddr *intfAddr, struct sockaddr *intfMask, |
@@ -27,7 +27,7 @@ Index: mDNSResponder/mDNSPosix/mDNSPosix.c | |||
27 | { | 27 | { |
28 | int err = 0; | 28 | int err = 0; |
29 | PosixNetworkInterface *intf; | 29 | PosixNetworkInterface *intf; |
30 | @@ -1411,6 +1411,7 @@ mDNSlocal int SetupOneInterface(mDNS *co | 30 | @@ -1411,6 +1411,7 @@ mDNSlocal int SetupOneInterface(mDNS *const m, struct sockaddr *intfAddr, struct |
31 | 31 | ||
32 | intf->coreIntf.Advertise = m->AdvertiseLocalAddresses; | 32 | intf->coreIntf.Advertise = m->AdvertiseLocalAddresses; |
33 | intf->coreIntf.McastTxRx = mDNStrue; | 33 | intf->coreIntf.McastTxRx = mDNStrue; |
@@ -35,7 +35,7 @@ Index: mDNSResponder/mDNSPosix/mDNSPosix.c | |||
35 | 35 | ||
36 | // Set up the extra fields in PosixNetworkInterface. | 36 | // Set up the extra fields in PosixNetworkInterface. |
37 | assert(intf->intfName != NULL); // intf->intfName already set up above | 37 | assert(intf->intfName != NULL); // intf->intfName already set up above |
38 | @@ -1561,7 +1562,7 @@ mDNSlocal int SetupInterfaceList(mDNS *c | 38 | @@ -1561,7 +1562,7 @@ mDNSlocal int SetupInterfaceList(mDNS *const m) |
39 | } | 39 | } |
40 | #endif | 40 | #endif |
41 | if (SetupOneInterface(m, i->ifa_addr, i->ifa_netmask, | 41 | if (SetupOneInterface(m, i->ifa_addr, i->ifa_netmask, |
@@ -44,7 +44,7 @@ Index: mDNSResponder/mDNSPosix/mDNSPosix.c | |||
44 | { | 44 | { |
45 | if (i->ifa_addr->sa_family == AF_INET) | 45 | if (i->ifa_addr->sa_family == AF_INET) |
46 | foundav4 = mDNStrue; | 46 | foundav4 = mDNStrue; |
47 | @@ -1578,7 +1579,7 @@ mDNSlocal int SetupInterfaceList(mDNS *c | 47 | @@ -1578,7 +1579,7 @@ mDNSlocal int SetupInterfaceList(mDNS *const m) |
48 | // if ((m->HostInterfaces == NULL) && (firstLoopback != NULL)) | 48 | // if ((m->HostInterfaces == NULL) && (firstLoopback != NULL)) |
49 | if (!foundav4 && firstLoopback) | 49 | if (!foundav4 && firstLoopback) |
50 | (void) SetupOneInterface(m, firstLoopback->ifa_addr, firstLoopback->ifa_netmask, | 50 | (void) SetupOneInterface(m, firstLoopback->ifa_addr, firstLoopback->ifa_netmask, |
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0004-make-Separate-TLS-targets-from-libraries.patch b/meta-networking/recipes-protocols/mdns/mdns/0004-make-Separate-TLS-targets-from-libraries.patch index 837580ac3..8d1915de8 100644 --- a/meta-networking/recipes-protocols/mdns/mdns/0004-make-Separate-TLS-targets-from-libraries.patch +++ b/meta-networking/recipes-protocols/mdns/mdns/0004-make-Separate-TLS-targets-from-libraries.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 22316f200803225f2d375ae5c36ffead59e2f6b8 Mon Sep 17 00:00:00 2001 | 1 | From f871ac42165c29f763785aa0199dfc76f1731f4d Mon Sep 17 00:00:00 2001 |
2 | From: Alex Kiernan <alex.kiernan@gmail.com> | 2 | From: Alex Kiernan <alex.kiernan@gmail.com> |
3 | Date: Mon, 5 Dec 2022 15:14:26 +0000 | 3 | Date: Mon, 5 Dec 2022 15:14:26 +0000 |
4 | Subject: [PATCH 4/6] make: Separate TLS targets from libraries | 4 | Subject: [PATCH] make: Separate TLS targets from libraries |
5 | 5 | ||
6 | There are dependencies on TLSOBJS, which fails when `-lmbedtls` is | 6 | There are dependencies on TLSOBJS, which fails when `-lmbedtls` is |
7 | listed as a dependency, so separate it out. | 7 | listed as a dependency, so separate it out. |
@@ -12,10 +12,10 @@ Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> | |||
12 | mDNSPosix/Makefile | 14 ++++++++------ | 12 | mDNSPosix/Makefile | 14 ++++++++------ |
13 | 1 file changed, 8 insertions(+), 6 deletions(-) | 13 | 1 file changed, 8 insertions(+), 6 deletions(-) |
14 | 14 | ||
15 | Index: mDNSResponder/mDNSPosix/Makefile | 15 | diff --git a/mDNSPosix/Makefile b/mDNSPosix/Makefile |
16 | =================================================================== | 16 | index c877c8bb19e6..3a5897c4dbee 100755 |
17 | --- mDNSResponder.orig/mDNSPosix/Makefile | 17 | --- a/mDNSPosix/Makefile |
18 | +++ mDNSResponder/mDNSPosix/Makefile | 18 | +++ b/mDNSPosix/Makefile |
19 | @@ -112,9 +112,11 @@ ifeq ($(findstring linux,$(os)),linux) | 19 | @@ -112,9 +112,11 @@ ifeq ($(findstring linux,$(os)),linux) |
20 | ifeq ($(tls), no) | 20 | ifeq ($(tls), no) |
21 | CFLAGS_OS = -D_GNU_SOURCE -DHAVE_IPV6 -DNOT_HAVE_SA_LEN -DUSES_NETLINK -DHAVE_LINUX -DTARGET_OS_LINUX -ftabstop=4 -Wno-expansion-to-defined | 21 | CFLAGS_OS = -D_GNU_SOURCE -DHAVE_IPV6 -DNOT_HAVE_SA_LEN -DUSES_NETLINK -DHAVE_LINUX -DTARGET_OS_LINUX -ftabstop=4 -Wno-expansion-to-defined |
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0005-Use-list-for-changed-interfaces.patch b/meta-networking/recipes-protocols/mdns/mdns/0005-Use-list-for-changed-interfaces.patch index f00116c61..ebdfe8c78 100644 --- a/meta-networking/recipes-protocols/mdns/mdns/0005-Use-list-for-changed-interfaces.patch +++ b/meta-networking/recipes-protocols/mdns/mdns/0005-Use-list-for-changed-interfaces.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From e79f81f5cd626ad77ec64de4325f6645cf253c5e Mon Sep 17 00:00:00 2001 | 1 | From 47118760466b74939cec9f5233062236a12bb3f4 Mon Sep 17 00:00:00 2001 |
2 | From: Nate Karstens <nate.karstens@garmin.com> | 2 | From: Nate Karstens <nate.karstens@garmin.com> |
3 | Date: Thu, 13 Jul 2017 09:00:00 -0500 | 3 | Date: Thu, 13 Jul 2017 09:00:00 -0500 |
4 | Subject: [PATCH 5/8] Use list for changed interfaces | 4 | Subject: [PATCH] Use list for changed interfaces |
5 | 5 | ||
6 | Uses a linked list to store the index of changed network interfaces | 6 | Uses a linked list to store the index of changed network interfaces |
7 | instead of a bitfield. This allows for network interfaces with an | 7 | instead of a bitfield. This allows for network interfaces with an |
@@ -15,10 +15,10 @@ Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> | |||
15 | mDNSPosix/mDNSPosix.c | 58 ++++++++++++++++++++++++++++++++----------- | 15 | mDNSPosix/mDNSPosix.c | 58 ++++++++++++++++++++++++++++++++----------- |
16 | 1 file changed, 43 insertions(+), 15 deletions(-) | 16 | 1 file changed, 43 insertions(+), 15 deletions(-) |
17 | 17 | ||
18 | Index: mDNSResponder/mDNSPosix/mDNSPosix.c | 18 | diff --git a/mDNSPosix/mDNSPosix.c b/mDNSPosix/mDNSPosix.c |
19 | =================================================================== | 19 | index f4c31a07d587..6b2fe76d4b66 100644 |
20 | --- mDNSResponder.orig/mDNSPosix/mDNSPosix.c | 20 | --- a/mDNSPosix/mDNSPosix.c |
21 | +++ mDNSResponder/mDNSPosix/mDNSPosix.c | 21 | +++ b/mDNSPosix/mDNSPosix.c |
22 | @@ -74,6 +74,14 @@ struct IfChangeRec | 22 | @@ -74,6 +74,14 @@ struct IfChangeRec |
23 | }; | 23 | }; |
24 | typedef struct IfChangeRec IfChangeRec; | 24 | typedef struct IfChangeRec IfChangeRec; |
@@ -34,7 +34,7 @@ Index: mDNSResponder/mDNSPosix/mDNSPosix.c | |||
34 | // Note that static data is initialized to zero in (modern) C. | 34 | // Note that static data is initialized to zero in (modern) C. |
35 | static PosixEventSource *gEventSources; // linked list of PosixEventSource's | 35 | static PosixEventSource *gEventSources; // linked list of PosixEventSource's |
36 | static sigset_t gEventSignalSet; // Signals which event loop listens for | 36 | static sigset_t gEventSignalSet; // Signals which event loop listens for |
37 | @@ -1621,6 +1629,23 @@ mDNSlocal mStatus OpenIfNotifySocket(int | 37 | @@ -1621,6 +1629,23 @@ mDNSlocal mStatus OpenIfNotifySocket(int *pFD) |
38 | return err; | 38 | return err; |
39 | } | 39 | } |
40 | 40 | ||
@@ -58,7 +58,7 @@ Index: mDNSResponder/mDNSPosix/mDNSPosix.c | |||
58 | #if MDNS_DEBUGMSGS | 58 | #if MDNS_DEBUGMSGS |
59 | mDNSlocal void PrintNetLinkMsg(const struct nlmsghdr *pNLMsg) | 59 | mDNSlocal void PrintNetLinkMsg(const struct nlmsghdr *pNLMsg) |
60 | { | 60 | { |
61 | @@ -1648,14 +1673,13 @@ mDNSlocal void PrintNetLinkMsg(cons | 61 | @@ -1648,14 +1673,13 @@ mDNSlocal void PrintNetLinkMsg(const struct nlmsghdr *pNLMsg) |
62 | } | 62 | } |
63 | #endif | 63 | #endif |
64 | 64 | ||
@@ -74,7 +74,7 @@ Index: mDNSResponder/mDNSPosix/mDNSPosix.c | |||
74 | 74 | ||
75 | // The structure here is more complex than it really ought to be because, | 75 | // The structure here is more complex than it really ought to be because, |
76 | // unfortunately, there's no good way to size a buffer in advance large | 76 | // unfortunately, there's no good way to size a buffer in advance large |
77 | @@ -1691,9 +1715,9 @@ mDNSlocal mDNSu32 ProcessRoutingNo | 77 | @@ -1691,9 +1715,9 @@ mDNSlocal mDNSu32 ProcessRoutingNotification(int sd) |
78 | 78 | ||
79 | // Process the NetLink message | 79 | // Process the NetLink message |
80 | if (pNLMsg->nlmsg_type == RTM_GETLINK || pNLMsg->nlmsg_type == RTM_NEWLINK) | 80 | if (pNLMsg->nlmsg_type == RTM_GETLINK || pNLMsg->nlmsg_type == RTM_NEWLINK) |
@@ -86,7 +86,7 @@ Index: mDNSResponder/mDNSPosix/mDNSPosix.c | |||
86 | 86 | ||
87 | // Advance pNLMsg to the next message in the buffer | 87 | // Advance pNLMsg to the next message in the buffer |
88 | if ((pNLMsg->nlmsg_flags & NLM_F_MULTI) != 0 && pNLMsg->nlmsg_type != NLMSG_DONE) | 88 | if ((pNLMsg->nlmsg_flags & NLM_F_MULTI) != 0 && pNLMsg->nlmsg_type != NLMSG_DONE) |
89 | @@ -1704,8 +1728,6 @@ mDNSlocal mDNSu32 ProcessRoutingNo | 89 | @@ -1704,8 +1728,6 @@ mDNSlocal mDNSu32 ProcessRoutingNotification(int sd) |
90 | else | 90 | else |
91 | break; // all done! | 91 | break; // all done! |
92 | } | 92 | } |
@@ -95,7 +95,7 @@ Index: mDNSResponder/mDNSPosix/mDNSPosix.c | |||
95 | } | 95 | } |
96 | 96 | ||
97 | #else // USES_NETLINK | 97 | #else // USES_NETLINK |
98 | @@ -1737,14 +1759,13 @@ mDNSlocal void PrintRoutingSocketMs | 98 | @@ -1737,14 +1759,13 @@ mDNSlocal void PrintRoutingSocketMsg(const struct ifa_msghdr *pRSMsg) |
99 | } | 99 | } |
100 | #endif | 100 | #endif |
101 | 101 | ||
@@ -111,7 +111,7 @@ Index: mDNSResponder/mDNSPosix/mDNSPosix.c | |||
111 | 111 | ||
112 | readCount = read(sd, buff, sizeof buff); | 112 | readCount = read(sd, buff, sizeof buff); |
113 | if (readCount < (ssize_t) sizeof(struct ifa_msghdr)) | 113 | if (readCount < (ssize_t) sizeof(struct ifa_msghdr)) |
114 | @@ -1759,12 +1780,10 @@ mDNSlocal mDNSu32 ProcessRoutingNo | 114 | @@ -1759,12 +1780,10 @@ mDNSlocal mDNSu32 ProcessRoutingNotification(int sd) |
115 | pRSMsg->ifam_type == RTM_IFINFO) | 115 | pRSMsg->ifam_type == RTM_IFINFO) |
116 | { | 116 | { |
117 | if (pRSMsg->ifam_type == RTM_IFINFO) | 117 | if (pRSMsg->ifam_type == RTM_IFINFO) |
@@ -126,7 +126,7 @@ Index: mDNSResponder/mDNSPosix/mDNSPosix.c | |||
126 | } | 126 | } |
127 | 127 | ||
128 | #endif // USES_NETLINK | 128 | #endif // USES_NETLINK |
129 | @@ -1774,7 +1793,8 @@ mDNSlocal void InterfaceChangeCallback(i | 129 | @@ -1774,7 +1793,8 @@ mDNSlocal void InterfaceChangeCallback(int fd, void *context) |
130 | { | 130 | { |
131 | IfChangeRec *pChgRec = (IfChangeRec*) context; | 131 | IfChangeRec *pChgRec = (IfChangeRec*) context; |
132 | fd_set readFDs; | 132 | fd_set readFDs; |
@@ -136,7 +136,7 @@ Index: mDNSResponder/mDNSPosix/mDNSPosix.c | |||
136 | struct timeval zeroTimeout = { 0, 0 }; | 136 | struct timeval zeroTimeout = { 0, 0 }; |
137 | 137 | ||
138 | (void)fd; // Unused | 138 | (void)fd; // Unused |
139 | @@ -1782,17 +1802,25 @@ mDNSlocal void InterfaceChangeCallback(i | 139 | @@ -1782,17 +1802,25 @@ mDNSlocal void InterfaceChangeCallback(int fd, void *context) |
140 | FD_ZERO(&readFDs); | 140 | FD_ZERO(&readFDs); |
141 | FD_SET(pChgRec->NotifySD, &readFDs); | 141 | FD_SET(pChgRec->NotifySD, &readFDs); |
142 | 142 | ||
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0005-mDNSCore-Fix-broken-debug-parameter.patch b/meta-networking/recipes-protocols/mdns/mdns/0005-mDNSCore-Fix-broken-debug-parameter.patch index fd2f2f117..3c46d599c 100644 --- a/meta-networking/recipes-protocols/mdns/mdns/0005-mDNSCore-Fix-broken-debug-parameter.patch +++ b/meta-networking/recipes-protocols/mdns/mdns/0005-mDNSCore-Fix-broken-debug-parameter.patch | |||
@@ -1,20 +1,19 @@ | |||
1 | From 764b6202402e9e5687ff873330e5ad6be6f69df7 Mon Sep 17 00:00:00 2001 | 1 | From 0b3953dfdeef8dc9b8a23820659feee9e15b5bad Mon Sep 17 00:00:00 2001 |
2 | From: Alex Kiernan <alex.kiernan@gmail.com> | 2 | From: Alex Kiernan <alex.kiernan@gmail.com> |
3 | Date: Mon, 5 Dec 2022 22:49:49 +0000 | 3 | Date: Mon, 5 Dec 2022 22:49:49 +0000 |
4 | Subject: [PATCH] mDNSCore: Fix broken debug parameter | 4 | Subject: [PATCH] mDNSCore: Fix broken debug parameter |
5 | 5 | ||
6 | Upstream-Status: Pending | 6 | Upstream-Status: Pending |
7 | Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> | 7 | Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> |
8 | |||
9 | --- | 8 | --- |
10 | mDNSCore/mDNS.c | 2 +- | 9 | mDNSCore/mDNS.c | 2 +- |
11 | 1 file changed, 1 insertion(+), 1 deletion(-) | 10 | 1 file changed, 1 insertion(+), 1 deletion(-) |
12 | 11 | ||
13 | Index: mDNSResponder/mDNSCore/mDNS.c | 12 | diff --git a/mDNSCore/mDNS.c b/mDNSCore/mDNS.c |
14 | =================================================================== | 13 | index d4519a7f62aa..3090edb2ac5d 100644 |
15 | --- mDNSResponder.orig/mDNSCore/mDNS.c | 14 | --- a/mDNSCore/mDNS.c |
16 | +++ mDNSResponder/mDNSCore/mDNS.c | 15 | +++ b/mDNSCore/mDNS.c |
17 | @@ -10231,7 +10231,7 @@ mDNSlocal void mDNSCoreReceiveNoUnicastA | 16 | @@ -10253,7 +10253,7 @@ mDNSlocal void mDNSCoreReceiveNoUnicastAnswers(mDNS *const m, const DNSMessage * |
18 | #else | 17 | #else |
19 | const DNSServRef dnsserv = qptr->qDNSServer; | 18 | const DNSServRef dnsserv = qptr->qDNSServer; |
20 | #endif | 19 | #endif |
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0006-Handle-noisy-netlink-sockets.patch b/meta-networking/recipes-protocols/mdns/mdns/0006-Handle-noisy-netlink-sockets.patch index 80cdbca50..be63471e6 100644 --- a/meta-networking/recipes-protocols/mdns/mdns/0006-Handle-noisy-netlink-sockets.patch +++ b/meta-networking/recipes-protocols/mdns/mdns/0006-Handle-noisy-netlink-sockets.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From bfa1d68bed863e22c40a6d9a19ffbcc8694bbff6 Mon Sep 17 00:00:00 2001 | 1 | From 105514b75df6d7abd052ec64d8106f5c07cc4782 Mon Sep 17 00:00:00 2001 |
2 | From: Nate Karstens <nate.karstens@garmin.com> | 2 | From: Nate Karstens <nate.karstens@garmin.com> |
3 | Date: Mon, 24 Jul 2017 09:38:55 -0500 | 3 | Date: Mon, 24 Jul 2017 09:38:55 -0500 |
4 | Subject: [PATCH 6/8] Handle noisy netlink sockets | 4 | Subject: [PATCH] Handle noisy netlink sockets |
5 | 5 | ||
6 | The POSIX implementation currently clears all network interfaces | 6 | The POSIX implementation currently clears all network interfaces |
7 | when netlink indicates that there has been a change. This causes | 7 | when netlink indicates that there has been a change. This causes |
@@ -27,11 +27,11 @@ Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> | |||
27 | mDNSPosix/mDNSPosix.c | 182 +++++++++++++++++++++++++++++++++++++++--- | 27 | mDNSPosix/mDNSPosix.c | 182 +++++++++++++++++++++++++++++++++++++++--- |
28 | 1 file changed, 172 insertions(+), 10 deletions(-) | 28 | 1 file changed, 172 insertions(+), 10 deletions(-) |
29 | 29 | ||
30 | Index: mDNSResponder/mDNSPosix/mDNSPosix.c | 30 | diff --git a/mDNSPosix/mDNSPosix.c b/mDNSPosix/mDNSPosix.c |
31 | =================================================================== | 31 | index 6b2fe76d4b66..ecd5741d038d 100644 |
32 | --- mDNSResponder.orig/mDNSPosix/mDNSPosix.c | 32 | --- a/mDNSPosix/mDNSPosix.c |
33 | +++ mDNSResponder/mDNSPosix/mDNSPosix.c | 33 | +++ b/mDNSPosix/mDNSPosix.c |
34 | @@ -1788,14 +1788,43 @@ mDNSlocal void ProcessRoutingNo | 34 | @@ -1788,14 +1788,43 @@ mDNSlocal void ProcessRoutingNotification(int sd, GenLinkedList *change |
35 | 35 | ||
36 | #endif // USES_NETLINK | 36 | #endif // USES_NETLINK |
37 | 37 | ||
@@ -75,7 +75,7 @@ Index: mDNSResponder/mDNSPosix/mDNSPosix.c | |||
75 | 75 | ||
76 | (void)fd; // Unused | 76 | (void)fd; // Unused |
77 | 77 | ||
78 | @@ -1810,12 +1839,149 @@ mDNSlocal void InterfaceChangeCallback(i | 78 | @@ -1810,12 +1839,149 @@ mDNSlocal void InterfaceChangeCallback(int fd, void *context) |
79 | } | 79 | } |
80 | while (0 < select(pChgRec->NotifySD + 1, &readFDs, (fd_set*) NULL, (fd_set*) NULL, &zeroTimeout)); | 80 | while (0 < select(pChgRec->NotifySD + 1, &readFDs, (fd_set*) NULL, (fd_set*) NULL, &zeroTimeout)); |
81 | 81 | ||
@@ -230,7 +230,7 @@ Index: mDNSResponder/mDNSPosix/mDNSPosix.c | |||
230 | while ((changedInterface = (NetworkInterfaceIndex*)changedInterfaces.Head) != NULL) | 230 | while ((changedInterface = (NetworkInterfaceIndex*)changedInterfaces.Head) != NULL) |
231 | { | 231 | { |
232 | RemoveFromList(&changedInterfaces, changedInterface); | 232 | RemoveFromList(&changedInterfaces, changedInterface); |
233 | @@ -1947,15 +2113,11 @@ mDNSexport void mDNSPlatformClose(mDNS * | 233 | @@ -1947,15 +2113,11 @@ mDNSexport void mDNSPlatformClose(mDNS *const m) |
234 | #endif | 234 | #endif |
235 | } | 235 | } |
236 | 236 | ||
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0006-make-Add-top-level-Makefile.patch b/meta-networking/recipes-protocols/mdns/mdns/0006-make-Add-top-level-Makefile.patch index c12a02fcd..ffa3fa382 100644 --- a/meta-networking/recipes-protocols/mdns/mdns/0006-make-Add-top-level-Makefile.patch +++ b/meta-networking/recipes-protocols/mdns/mdns/0006-make-Add-top-level-Makefile.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From fa9ef50ab4c4225cf3ade4bafc38ddf93e6fe127 Mon Sep 17 00:00:00 2001 | 1 | From 626ccae85aab5b0902a8e3c05d9f0e3fbbe4fcd2 Mon Sep 17 00:00:00 2001 |
2 | From: Alex Kiernan <alex.kiernan@gmail.com> | 2 | From: Alex Kiernan <alex.kiernan@gmail.com> |
3 | Date: Tue, 6 Dec 2022 13:28:31 +0000 | 3 | Date: Tue, 6 Dec 2022 13:28:31 +0000 |
4 | Subject: [PATCH 6/6] make: Add top-level Makefile | 4 | Subject: [PATCH] make: Add top-level Makefile |
5 | 5 | ||
6 | Simple top level Makefile that just delegates to mDNSPosix. | 6 | Simple top level Makefile that just delegates to mDNSPosix. |
7 | 7 | ||
@@ -12,10 +12,11 @@ Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> | |||
12 | 1 file changed, 2 insertions(+) | 12 | 1 file changed, 2 insertions(+) |
13 | create mode 100644 Makefile | 13 | create mode 100644 Makefile |
14 | 14 | ||
15 | Index: mDNSResponder/Makefile | 15 | diff --git a/Makefile b/Makefile |
16 | =================================================================== | 16 | new file mode 100644 |
17 | index 000000000000..feb6ac67ef47 | ||
17 | --- /dev/null | 18 | --- /dev/null |
18 | +++ mDNSResponder/Makefile | 19 | +++ b/Makefile |
19 | @@ -0,0 +1,2 @@ | 20 | @@ -0,0 +1,2 @@ |
20 | +all clean: | 21 | +all clean: |
21 | + cd mDNSPosix && $(MAKE) $@ | 22 | + cd mDNSPosix && $(MAKE) $@ |
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0007-Mark-deleted-interfaces-as-being-changed.patch b/meta-networking/recipes-protocols/mdns/mdns/0007-Mark-deleted-interfaces-as-being-changed.patch index dae1ac7ea..276f879df 100644 --- a/meta-networking/recipes-protocols/mdns/mdns/0007-Mark-deleted-interfaces-as-being-changed.patch +++ b/meta-networking/recipes-protocols/mdns/mdns/0007-Mark-deleted-interfaces-as-being-changed.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From a8accffb95267490b50401c8b65ec18db57b5ef5 Mon Sep 17 00:00:00 2001 | 1 | From 3715b3f4a0ba2d2cb05e5ba617b523c759c88d4b Mon Sep 17 00:00:00 2001 |
2 | From: Nate Karstens <nate.karstens@garmin.com> | 2 | From: Nate Karstens <nate.karstens@garmin.com> |
3 | Date: Wed, 9 Aug 2017 09:16:58 -0500 | 3 | Date: Wed, 9 Aug 2017 09:16:58 -0500 |
4 | Subject: [PATCH 7/8] Mark deleted interfaces as being changed | 4 | Subject: [PATCH] Mark deleted interfaces as being changed |
5 | 5 | ||
6 | Netlink notification handling ignores messages for deleted links, | 6 | Netlink notification handling ignores messages for deleted links, |
7 | RTM_DELLINK. It does handle RTM_GETLINK. According to libnl docu- | 7 | RTM_DELLINK. It does handle RTM_GETLINK. According to libnl docu- |
@@ -22,11 +22,11 @@ Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> | |||
22 | mDNSPosix/mDNSPosix.c | 2 +- | 22 | mDNSPosix/mDNSPosix.c | 2 +- |
23 | 1 file changed, 1 insertion(+), 1 deletion(-) | 23 | 1 file changed, 1 insertion(+), 1 deletion(-) |
24 | 24 | ||
25 | Index: mDNSResponder/mDNSPosix/mDNSPosix.c | 25 | diff --git a/mDNSPosix/mDNSPosix.c b/mDNSPosix/mDNSPosix.c |
26 | =================================================================== | 26 | index ecd5741d038d..776531dbc8e8 100644 |
27 | --- mDNSResponder.orig/mDNSPosix/mDNSPosix.c | 27 | --- a/mDNSPosix/mDNSPosix.c |
28 | +++ mDNSResponder/mDNSPosix/mDNSPosix.c | 28 | +++ b/mDNSPosix/mDNSPosix.c |
29 | @@ -1714,7 +1714,7 @@ mDNSlocal void ProcessRoutingNo | 29 | @@ -1714,7 +1714,7 @@ mDNSlocal void ProcessRoutingNotification(int sd, GenLinkedList *change |
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | // Process the NetLink message | 32 | // Process the NetLink message |
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0008-Handle-errors-from-socket-calls.patch b/meta-networking/recipes-protocols/mdns/mdns/0008-Handle-errors-from-socket-calls.patch index 1789001e1..f3c7f62d3 100644 --- a/meta-networking/recipes-protocols/mdns/mdns/0008-Handle-errors-from-socket-calls.patch +++ b/meta-networking/recipes-protocols/mdns/mdns/0008-Handle-errors-from-socket-calls.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From ed58146d3aeecdb9920fdc017f85c18b5b10f2db Mon Sep 17 00:00:00 2001 | 1 | From 4e6621eee389e1cbb558fe268e02d5153a1d8f2d Mon Sep 17 00:00:00 2001 |
2 | From: Nate Karstens <nate.karstens@garmin.com> | 2 | From: Nate Karstens <nate.karstens@garmin.com> |
3 | Date: Thu, 10 Aug 2017 08:27:32 -0500 | 3 | Date: Thu, 10 Aug 2017 08:27:32 -0500 |
4 | Subject: [PATCH 8/8] Handle errors from socket calls | 4 | Subject: [PATCH] Handle errors from socket calls |
5 | 5 | ||
6 | Adds handling for socket() or read() returning a | 6 | Adds handling for socket() or read() returning a |
7 | negative value (indicating an error has occurred). | 7 | negative value (indicating an error has occurred). |
@@ -14,11 +14,11 @@ Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> | |||
14 | mDNSPosix/mDNSPosix.c | 12 +++++++++--- | 14 | mDNSPosix/mDNSPosix.c | 12 +++++++++--- |
15 | 1 file changed, 9 insertions(+), 3 deletions(-) | 15 | 1 file changed, 9 insertions(+), 3 deletions(-) |
16 | 16 | ||
17 | Index: mDNSResponder/mDNSPosix/mDNSPosix.c | 17 | diff --git a/mDNSPosix/mDNSPosix.c b/mDNSPosix/mDNSPosix.c |
18 | =================================================================== | 18 | index 776531dbc8e8..0c9dd2582660 100644 |
19 | --- mDNSResponder.orig/mDNSPosix/mDNSPosix.c | 19 | --- a/mDNSPosix/mDNSPosix.c |
20 | +++ mDNSResponder/mDNSPosix/mDNSPosix.c | 20 | +++ b/mDNSPosix/mDNSPosix.c |
21 | @@ -1677,7 +1677,7 @@ mDNSlocal void ProcessRoutingNo | 21 | @@ -1677,7 +1677,7 @@ mDNSlocal void ProcessRoutingNotification(int sd, GenLinkedList *change |
22 | // Read through the messages on sd and if any indicate that any interface records should | 22 | // Read through the messages on sd and if any indicate that any interface records should |
23 | // be torn down and rebuilt, return affected indices as a bitmask. Otherwise return 0. | 23 | // be torn down and rebuilt, return affected indices as a bitmask. Otherwise return 0. |
24 | { | 24 | { |
@@ -27,7 +27,7 @@ Index: mDNSResponder/mDNSPosix/mDNSPosix.c | |||
27 | char buff[4096]; | 27 | char buff[4096]; |
28 | struct nlmsghdr *pNLMsg = (struct nlmsghdr*) buff; | 28 | struct nlmsghdr *pNLMsg = (struct nlmsghdr*) buff; |
29 | 29 | ||
30 | @@ -1686,7 +1686,10 @@ mDNSlocal void ProcessRoutingNo | 30 | @@ -1686,7 +1686,10 @@ mDNSlocal void ProcessRoutingNotification(int sd, GenLinkedList *change |
31 | // enough to hold all pending data and so avoid message fragmentation. | 31 | // enough to hold all pending data and so avoid message fragmentation. |
32 | // (Note that FIONREAD is not supported on AF_NETLINK.) | 32 | // (Note that FIONREAD is not supported on AF_NETLINK.) |
33 | 33 | ||
@@ -39,7 +39,7 @@ Index: mDNSResponder/mDNSPosix/mDNSPosix.c | |||
39 | while (1) | 39 | while (1) |
40 | { | 40 | { |
41 | // Make sure we've got an entire nlmsghdr in the buffer, and payload, too. | 41 | // Make sure we've got an entire nlmsghdr in the buffer, and payload, too. |
42 | @@ -1702,7 +1705,9 @@ mDNSlocal void ProcessRoutingNo | 42 | @@ -1702,7 +1705,9 @@ mDNSlocal void ProcessRoutingNotification(int sd, GenLinkedList *change |
43 | pNLMsg = (struct nlmsghdr*) buff; | 43 | pNLMsg = (struct nlmsghdr*) buff; |
44 | 44 | ||
45 | // read more data | 45 | // read more data |
@@ -50,7 +50,7 @@ Index: mDNSResponder/mDNSPosix/mDNSPosix.c | |||
50 | continue; // spin around and revalidate with new readCount | 50 | continue; // spin around and revalidate with new readCount |
51 | } | 51 | } |
52 | else | 52 | else |
53 | @@ -2017,6 +2022,7 @@ mDNSlocal mDNSBool mDNSPlatformInit_CanR | 53 | @@ -2017,6 +2022,7 @@ mDNSlocal mDNSBool mDNSPlatformInit_CanReceiveUnicast(void) |
54 | int err; | 54 | int err; |
55 | int s = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); | 55 | int s = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); |
56 | struct sockaddr_in s5353; | 56 | struct sockaddr_in s5353; |
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch b/meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch index d443bc97b..818017037 100644 --- a/meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch +++ b/meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 1d7e71e72c597ffcc19c04373a477d1fbd3ad955 Mon Sep 17 00:00:00 2001 | 1 | From 05cb409ce213f35798c02faf2032d4846a84b48e Mon Sep 17 00:00:00 2001 |
2 | From: Beniamin Sandu <beniaminsandu@gmail.com> | 2 | From: Beniamin Sandu <beniaminsandu@gmail.com> |
3 | Date: Thu, 15 Jun 2023 17:02:58 +0000 | 3 | Date: Thu, 15 Jun 2023 17:02:58 +0000 |
4 | Subject: [PATCH] remove unneeded headers | 4 | Subject: [PATCH] remove unneeded headers |
@@ -14,10 +14,10 @@ Signed-off-by: Beniamin Sandu <beniaminsandu@gmail.com> | |||
14 | mDNSPosix/mbedtls.c | 2 -- | 14 | mDNSPosix/mbedtls.c | 2 -- |
15 | 1 file changed, 2 deletions(-) | 15 | 1 file changed, 2 deletions(-) |
16 | 16 | ||
17 | Index: mDNSResponder/mDNSPosix/mbedtls.c | 17 | diff --git a/mDNSPosix/mbedtls.c b/mDNSPosix/mbedtls.c |
18 | =================================================================== | 18 | index a73681b6d528..ab8f8c772c00 100644 |
19 | --- mDNSResponder.orig/mDNSPosix/mbedtls.c | 19 | --- a/mDNSPosix/mbedtls.c |
20 | +++ mDNSResponder/mDNSPosix/mbedtls.c | 20 | +++ b/mDNSPosix/mbedtls.c |
21 | @@ -38,10 +38,8 @@ | 21 | @@ -38,10 +38,8 @@ |
22 | #include <mbedtls/sha256.h> | 22 | #include <mbedtls/sha256.h> |
23 | #include <mbedtls/base64.h> | 23 | #include <mbedtls/base64.h> |
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0015-Add-missing-limits.h.patch b/meta-networking/recipes-protocols/mdns/mdns/0015-Add-missing-limits.h.patch deleted file mode 100644 index 511a6fdc1..000000000 --- a/meta-networking/recipes-protocols/mdns/mdns/0015-Add-missing-limits.h.patch +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | From 9fc45a2cf3b78573a568abf538a6e6f4bd30b2d7 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alex Kiernan <alex.kiernan@gmail.com> | ||
3 | Date: Wed, 27 Sep 2023 11:45:26 +0100 | ||
4 | Subject: [PATCH] Add missing limits.h | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> | ||
8 | --- | ||
9 | mDNSShared/PlatformCommon.c | 1 + | ||
10 | 1 file changed, 1 insertion(+) | ||
11 | |||
12 | Index: mDNSResponder/mDNSShared/PlatformCommon.c | ||
13 | =================================================================== | ||
14 | --- mDNSResponder.orig/mDNSShared/PlatformCommon.c | ||
15 | +++ mDNSResponder/mDNSShared/PlatformCommon.c | ||
16 | @@ -32,6 +32,7 @@ | ||
17 | #include <time.h> | ||
18 | #include <sys/time.h> // Needed for #include <sys/time.h>(). | ||
19 | #include <assert.h> | ||
20 | +#include <limits.h> | ||
21 | |||
22 | |||
23 | #include "mDNSEmbeddedAPI.h" // Defines the interface provided to the client layer above | ||
diff --git a/meta-networking/recipes-protocols/mdns/mdns_2200.100.94.0.2.bb b/meta-networking/recipes-protocols/mdns/mdns_2200.120.24.bb index ff7b0447b..9aeda92a4 100644 --- a/meta-networking/recipes-protocols/mdns/mdns_2200.100.94.0.2.bb +++ b/meta-networking/recipes-protocols/mdns/mdns_2200.120.24.bb | |||
@@ -22,11 +22,10 @@ SRC_URI = "git://github.com/apple-oss-distributions/mDNSResponder;protocol=https | |||
22 | file://0008-Handle-errors-from-socket-calls.patch \ | 22 | file://0008-Handle-errors-from-socket-calls.patch \ |
23 | file://0009-remove-unneeded-headers.patch \ | 23 | file://0009-remove-unneeded-headers.patch \ |
24 | file://mdns.service \ | 24 | file://mdns.service \ |
25 | file://0015-Add-missing-limits.h.patch \ | ||
26 | file://0001-Handle-interface-without-ifa_addr.patch \ | 25 | file://0001-Handle-interface-without-ifa_addr.patch \ |
27 | file://0001-Fix-SIGSEGV-during-DumpStateLog.patch \ | 26 | file://0001-Fix-SIGSEGV-during-DumpStateLog.patch \ |
28 | " | 27 | " |
29 | SRCREV = "8f70f98fc1d0cf439ca3a6470be6ad8ac2bcc019" | 28 | SRCREV = "51a7148a21362285f8013648c4bfa91247ff598a" |
30 | 29 | ||
31 | # We install a stub Makefile in the top directory so that the various checks | 30 | # We install a stub Makefile in the top directory so that the various checks |
32 | # in base.bbclass pass their tests for a Makefile, this ensures (that amongst | 31 | # in base.bbclass pass their tests for a Makefile, this ensures (that amongst |