Commit 1f0ea728 authored by Chad Barb's avatar Chad Barb

Added local Multicast Loopback shutoff ioctl to try to bring down CPU usage.

parent b89d430b
......@@ -155,6 +155,11 @@ void n_init( ushort receivePort, ushort sendPort, uint sendAddress )
exit(1);
}
setsockopt(sock,IPPROTO_IP,IP_MULTICAST_TTL,&ttl,sizeof(ttl));
{ /* disable local echo */
u_char loop = 0;
setsockopt(sock, IPPROTO_IP, IP_MULTICAST_LOOP, &loop, sizeof(loop));
}
} else
#endif /* MCAST */
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment