mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
open-iscsi: add patch to enable multicast
This commit is contained in:
parent
9fb174b66a
commit
12adb7c3ae
@ -0,0 +1,26 @@
|
||||
From d5b4400d2c50190474a6000d60f05deb95f97e0b Mon Sep 17 00:00:00 2001
|
||||
From: Stefan Saraev <stefan@saraev.ca>
|
||||
Date: Thu, 8 Aug 2013 18:08:44 +0300
|
||||
Subject: [PATCH] enable multicast
|
||||
|
||||
source: https://groups.google.com/forum/#!msg/open-iscsi/nuLFqxgsHAA/53-JE3gNNjEJ
|
||||
---
|
||||
usr/iscsi_net_util.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/usr/iscsi_net_util.c b/usr/iscsi_net_util.c
|
||||
index 6d0ebf9..3801ac7 100644
|
||||
--- a/usr/iscsi_net_util.c
|
||||
+++ b/usr/iscsi_net_util.c
|
||||
@@ -229,7 +229,7 @@ int net_setup_netdev(char *netdev, char *local_ip, char *mask, char *gateway,
|
||||
/* Bring up interface */
|
||||
memset(&ifr, 0, sizeof(ifr));
|
||||
strlcpy(ifr.ifr_name, netdev, IFNAMSIZ);
|
||||
- ifr.ifr_flags = IFF_UP | IFF_RUNNING;
|
||||
+ ifr.ifr_flags = IFF_UP | IFF_RUNNING | IFF_MULTICAST;
|
||||
if (ioctl(sock, SIOCSIFFLAGS, &ifr) < 0) {
|
||||
log_error("Could not bring up netdev %s (err %d - %s)",
|
||||
netdev, errno, strerror(errno));
|
||||
--
|
||||
1.8.1.2
|
||||
|
Loading…
x
Reference in New Issue
Block a user