multimedia/libhdhomerun: Update to 20200907
Changes https://www.silicondust.com/support/downloads/software-changelog/
PR: 251088
Approved by: maintainer
MFH: 2021Q2
(cherry picked from commit 63bb888a3d
)
This commit is contained in:
parent
b8723f121c
commit
914092bdcf
@ -1,7 +1,6 @@
|
||||
|
||||
PORTNAME= libhdhomerun
|
||||
PORTVERSION= 20190621
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 20200907
|
||||
CATEGORIES= multimedia
|
||||
MASTER_SITES= https://download.silicondust.com/hdhomerun/
|
||||
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
||||
|
@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1569315689
|
||||
SHA256 (libhdhomerun_20190621.tgz) = 9a60f663b00de5f820bdb85806662e25f22da248b14942e33a8b43a0331f855a
|
||||
SIZE (libhdhomerun_20190621.tgz) = 50817
|
||||
TIMESTAMP = 1623768784
|
||||
SHA256 (libhdhomerun_20200907.tgz) = cbaeb779c5a4e07db45310ef4271872bcb7c472402ebc3c58e224653c09400ed
|
||||
SIZE (libhdhomerun_20200907.tgz) = 51014
|
||||
|
@ -1,35 +0,0 @@
|
||||
# Backport FreeBSD broadcast patch
|
||||
# https://github.com/Silicondust/libhdhomerun/commit/b0e5d5f5c8e2bf37dea34beb014e08ebb598ebf6
|
||||
|
||||
--- hdhomerun_discover.c.orig 2019-09-30 16:45:23 UTC
|
||||
+++ hdhomerun_discover.c
|
||||
@@ -183,7 +183,8 @@ static bool hdhomerun_discover_send(struct hdhomerun_d
|
||||
unsigned int i;
|
||||
for (i = 1; i < ds->sock_count; i++) {
|
||||
struct hdhomerun_discover_sock_t *dss = &ds->socks[i];
|
||||
-
|
||||
+ uint32_t send_ip = target_ip;
|
||||
+
|
||||
if (target_ip != 0xFFFFFFFF) {
|
||||
if (dss->subnet_mask == 0) {
|
||||
continue;
|
||||
@@ -193,7 +194,18 @@ static bool hdhomerun_discover_send(struct hdhomerun_d
|
||||
}
|
||||
}
|
||||
|
||||
- result |= hdhomerun_discover_send_internal(ds, dss, target_ip, device_type, device_id);
|
||||
+#if defined(IP_ONESBCAST)
|
||||
+ /* FreeBSD special handling - send subnet broadcast */
|
||||
+ if (target_ip == 0xFFFFFFFF) {
|
||||
+ send_ip = dss->local_ip | ~dss->subnet_mask;
|
||||
+
|
||||
+ if ((send_ip == 0x00000000) || (send_ip == 0xFFFFFFFF)) {
|
||||
+ continue;
|
||||
+ }
|
||||
+ }
|
||||
+#endif
|
||||
+
|
||||
+ result |= hdhomerun_discover_send_internal(ds, dss, send_ip, device_type, device_id);
|
||||
}
|
||||
|
||||
/*
|
Loading…
Reference in New Issue
Block a user