From 1c7af6363df02d3f2b2177807486072dbbcf149a Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 19 Oct 2023 19:15:11 +0200 Subject: [PATCH] umdns: update to the latest version 479c7f8676d9 cache: make record/hostname lookup case-insensitive 26c97a5a50bf ubus: add a browse flag for suppressing cached ip addresses c286c51a9bd9 Fix AVL tree traversal in cache_record_find and cache_host_is_known 4035fe42df58 interface: use a global socket instead of per-interface ones c63d465698c7 cache: dump hostname target from srv records b42b22152d73 use hostname from SRV record to look up IP addresses d45c443aa1e6 ubus: add array flag support for the hosts method Signed-off-by: Felix Fietkau --- package/network/services/umdns/Makefile | 6 ++-- ...-add-definition-of-container_of_safe.patch | 28 +++++++++++++++++++ 2 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 package/network/services/umdns/patches/0001-add-definition-of-container_of_safe.patch diff --git a/package/network/services/umdns/Makefile b/package/network/services/umdns/Makefile index b7564fa7c..4510bdeb6 100644 --- a/package/network/services/umdns/Makefile +++ b/package/network/services/umdns/Makefile @@ -12,9 +12,9 @@ PKG_RELEASE:=5 PKG_SOURCE_URL=$(PROJECT_GIT)/project/mdnsd.git PKG_SOURCE_PROTO:=git -PKG_SOURCE_DATE:=2023-01-16 -PKG_SOURCE_VERSION:=65b3308d13de7d7975444d34389651612e2a4d38 -PKG_MIRROR_HASH:=945fdf51a299b68982aab74e8fba5614f2553a7b4c49a3a53b3093ea8aac0279 +PKG_SOURCE_DATE:=2023-10-19 +PKG_SOURCE_VERSION:=d45c443aa1e6514aab58bbbf9311913e484d31a6 +PKG_MIRROR_HASH:=20d91d867f4f34a37c7b2a600327884375f9f16c1ea9bbb3199347d8b617d856 PKG_MAINTAINER:=John Crispin PKG_LICENSE:=LGPL-2.1 diff --git a/package/network/services/umdns/patches/0001-add-definition-of-container_of_safe.patch b/package/network/services/umdns/patches/0001-add-definition-of-container_of_safe.patch new file mode 100644 index 000000000..63a0ee82d --- /dev/null +++ b/package/network/services/umdns/patches/0001-add-definition-of-container_of_safe.patch @@ -0,0 +1,28 @@ +From 556cef9c29613530c1eb240fbe8bdf31b135fc77 Mon Sep 17 00:00:00 2001 +From: HiGarfield +Date: Sat, 28 Oct 2023 21:55:20 +0800 +Subject: [PATCH] add definition of container_of_safe + +--- + interface.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/interface.c b/interface.c +index e98edde..3b84287 100644 +--- a/interface.c ++++ b/interface.c +@@ -41,6 +41,11 @@ + #include "announce.h" + #include "service.h" + ++#ifndef container_of_safe ++#define container_of_safe(ptr, type, member) \ ++ ((!(ptr)) ? ((void *) (ptr)) : container_of((ptr), (type), (member))) ++#endif ++ + static struct uloop_fd ufd[] = { + [SOCK_UC_IPV4] = { .fd = -1 }, + [SOCK_UC_IPV6] = { .fd = -1 }, +-- +2.25.1 +