FreeBSD Bugzilla – Attachment 207961 Details for
Bug 240907
multimedia/libhdhomerun: not discovering devices after update to 20190621
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
multimedia/libhdhomerun: Add FreeBSD broadcast patch
libhdhomerun-20190621_1.diff (text/plain), 2.02 KB, created by
David O'Rourke
on 2019-09-30 16:54:42 UTC
(
hide
)
Description:
multimedia/libhdhomerun: Add FreeBSD broadcast patch
Filename:
MIME Type:
Creator:
David O'Rourke
Created:
2019-09-30 16:54:42 UTC
Size:
2.02 KB
patch
obsolete
>Index: multimedia/libhdhomerun/Makefile >=================================================================== >--- multimedia/libhdhomerun/Makefile (revision 513109) >+++ multimedia/libhdhomerun/Makefile (working copy) >@@ -2,6 +2,7 @@ > > PORTNAME= libhdhomerun > PORTVERSION= 20190621 >+PORTREVISION= 1 > CATEGORIES= multimedia > MASTER_SITES= https://download.silicondust.com/hdhomerun/ > DISTNAME= ${PORTNAME}_${PORTVERSION} >Index: multimedia/libhdhomerun/files/patch-hdhomerun__discover.c >=================================================================== >--- multimedia/libhdhomerun/files/patch-hdhomerun__discover.c (nonexistent) >+++ multimedia/libhdhomerun/files/patch-hdhomerun__discover.c (working copy) >@@ -0,0 +1,32 @@ >+--- 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); >+ } >+ >+ /* > >Property changes on: multimedia/libhdhomerun/files/patch-hdhomerun__discover.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
dor.bsd
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 240907
:
207923
| 207961