From: Fredrik Tolf Date: Sat, 9 Aug 2008 14:16:30 +0000 (+0200) Subject: Use multicast loopbacking. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=af3fc4a5b88a7014b43aa092c4e0e5f8fa962ed4;p=mctap.git Use multicast loopbacking. --- diff --git a/src/mctap.c b/src/mctap.c index 437082b..52dd294 100644 --- a/src/mctap.c +++ b/src/mctap.c @@ -68,6 +68,9 @@ static int mkmcastsk4(struct in_addr group, int port) mreq.imr_multiaddr = group; if(setsockopt(fd, SOL_IP, IP_ADD_MEMBERSHIP, &mreq, sizeof(mreq))) return(-1); + soval = 1; + if(setsockopt(fd, SOL_IP, IP_MULTICAST_LOOP, &soval, sizeof(soval))) + return(-1); return(fd); }