multimedia/minisatip: Update to 1.1.67

This commit is contained in:
Bernhard Froehlich
2022-02-07 12:35:08 +00:00
parent 666ef556c4
commit 8783962f02
3 changed files with 18 additions and 16 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
# Created by: Bernhard Froehlich <decke@FreeBSD.org>
PORTNAME= minisatip
PORTVERSION= 1.1.63
PORTVERSION= 1.1.67
DISTVERSIONPREFIX= v
CATEGORIES= multimedia
+3 -3
View File
@@ -1,3 +1,3 @@
TIMESTAMP = 1643299272
SHA256 (catalinii-minisatip-v1.1.63_GH0.tar.gz) = 902d0c1a0622be16ca24ed197a1a7a0b9d6e67f23cf91d55673b0c707806cb78
SIZE (catalinii-minisatip-v1.1.63_GH0.tar.gz) = 395240
TIMESTAMP = 1644236927
SHA256 (catalinii-minisatip-v1.1.67_GH0.tar.gz) = aa237195baae295d459be8357986c868d44c67a246082b7eadfdbb14f8755f76
SIZE (catalinii-minisatip-v1.1.67_GH0.tar.gz) = 389675
@@ -1,18 +1,20 @@
--- src/minisatip.c.orig 2021-07-05 22:02:32 UTC
--- src/minisatip.c.orig 2022-02-04 06:56:09 UTC
+++ src/minisatip.c
@@ -1827,11 +1827,15 @@ int main(int argc, char *argv[]) {
struct ifreq ifr;
memset(&ifr, 0, sizeof(ifr));
snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "%s", opts.bind_dev);
@@ -1871,6 +1871,7 @@ int main(int argc, char *argv[]) {
struct ifreq ifr;
memset(&ifr, 0, sizeof(ifr));
snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "%s", opts.bind_dev);
+#if defined(SO_BINDTODEVICE)
if (setsockopt(ssdp, SOL_SOCKET, SO_BINDTODEVICE, (void *)&ifr, sizeof(ifr)) < 0)
LOG("SSDP: Failed to set SO_BINDTODEVICE to %s", opts.bind_dev);
if (setsockopt(ssdp1, SOL_SOCKET, SO_BINDTODEVICE, (void *)&ifr, sizeof(ifr)) < 0)
LOG("SSDP: Failed to set SO_BINDTODEVICE to %s", opts.bind_dev);
LOG("SSDP: Bound to device %s", opts.bind_dev);
if (setsockopt(ssdp, SOL_SOCKET, SO_BINDTODEVICE, (void *)&ifr,
sizeof(ifr)) < 0)
LOG("SSDP: Failed to set SO_BINDTODEVICE to %s", opts.bind_dev);
@@ -1878,6 +1879,9 @@ int main(int argc, char *argv[]) {
sizeof(ifr)) < 0)
LOG("SSDP: Failed to set SO_BINDTODEVICE to %s", opts.bind_dev);
LOG("SSDP: Bound to device %s", opts.bind_dev);
+#else
+ LOG("SSDP: Binding to device with SO_BINDTODEVICE not supported!");
+ LOG("SSDP: Binding to device with SO_BINDTODEVICE not supported!");
+#endif
}
}
si = sockets_add(ssdp, NULL, -1, TYPE_UDP, (socket_action)ssdp_reply,