Skip to content

Commit

Permalink
umdns: update to the latest version
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
nbd168 authored and HiGarfield committed Oct 28, 2023
1 parent 51ef25c commit 1c7af63
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package/network/services/umdns/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>
PKG_LICENSE:=LGPL-2.1
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
From 556cef9c29613530c1eb240fbe8bdf31b135fc77 Mon Sep 17 00:00:00 2001
From: HiGarfield <[email protected]>
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

0 comments on commit 1c7af63

Please sign in to comment.