aboutsummaryrefslogtreecommitdiffhomepage
path: root/artnet.c
diff options
context:
space:
mode:
Diffstat (limited to 'artnet.c')
-rw-r--r--artnet.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/artnet.c b/artnet.c
index 3c76f21..fe9efd9 100644
--- a/artnet.c
+++ b/artnet.c
@@ -50,6 +50,11 @@ static int artnet_listener(char* host, char* port){
fprintf(stderr, "Failed to set SO_BROADCAST on socket\n");
}
+ yes = 0;
+ if(setsockopt(fd, IPPROTO_IP, IP_MULTICAST_LOOP, (void*)&yes, sizeof(yes)) < 0){
+ fprintf(stderr, "Failed to unset IP_MULTICAST_LOOP option: %s\n", strerror(errno));
+ }
+
status = bind(fd, addr_it->ai_addr, addr_it->ai_addrlen);
if(status < 0){
close(fd);