diff options
author | cbdev <cb@cbcdn.com> | 2017-06-08 02:52:20 +0200 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2017-06-08 02:52:20 +0200 |
commit | 4f78cdb9d9ac293acd243e9f92c8eeace2158a23 (patch) | |
tree | 26e9e68f74f6335dc3fab1009334c8d4b2da41a9 | |
parent | aed37425605d73ac22ec1f8c3145486d0ec79bb3 (diff) | |
download | midimonster-4f78cdb9d9ac293acd243e9f92c8eeace2158a23.tar.gz midimonster-4f78cdb9d9ac293acd243e9f92c8eeace2158a23.tar.bz2 midimonster-4f78cdb9d9ac293acd243e9f92c8eeace2158a23.zip |
Disable broadcast loopbackl
-rw-r--r-- | artnet.c | 5 | ||||
-rw-r--r-- | monster.cfg | 12 |
2 files changed, 11 insertions, 6 deletions
@@ -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); diff --git a/monster.cfg b/monster.cfg index 128efcd..194b115 100644 --- a/monster.cfg +++ b/monster.cfg @@ -12,21 +12,21 @@ read = BCF write = BCF [midi lc1] -;read = Launch Control -;write = Launch Control +read = Launch Control +write = Launch Control [midi xlate] [artnet net1] net = 0 -uni = 0 +uni = 1 output = true [map] bcf.cc0.81 = lc1.cc0.1 -lc1.cc0.1 = bcf.cc0.81 -bcf.cc0.82 = lc1.note0.9 -net1.15 = bcf.cc0.82 +bcf.cc0.82 = lc1.note0.1 +bcf.cc0.83 = lc1.cc0.9 +net1.15 = lc1.cc0.1 bcf.cc0.1 = net1.1 bcf.cc0.2 = net1.3 ;net1.257 = bcf.cc0.81 |