+ if (fd != -1)
+ {
+ /* Copy the multicast IPv4 TTL value (useless for IPv6) */
+ int ttl;
+ socklen_t len = sizeof (ttl);
+
+ if (!getsockopt (rtp_fd, SOL_IP, IP_MULTICAST_TTL, &ttl, &len))
+ setsockopt (fd, SOL_IP, IP_MULTICAST_TTL, &ttl, len);
+
+ /* Ignore all incoming RTCP-RR packets */
+ setsockopt (fd, SOL_SOCKET, SO_RCVBUF, &(int){ 0 }, sizeof (int));
+ }