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 6281888
Show file tree
Hide file tree
Showing 2 changed files with 23 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,20 @@
From 0fa207ebd07f647eb013403910c555d56ff44138 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

---
--- 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) \
+ (IS_ERR_OR_NULL(ptr) ? ERR_CAST(ptr) : container_of(type, member))
+#endif
+
static struct uloop_fd ufd[] = {
[SOCK_UC_IPV4] = { .fd = -1 },
[SOCK_UC_IPV6] = { .fd = -1 },

0 comments on commit 6281888

Please sign in to comment.