27 lines
946 B
Diff
27 lines
946 B
Diff
|
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
|
||
|
|