Multicast SDP packets sent with same IP TTL as RTP packets
authorTom Bamford <tom@tombamford.co.uk>
Sat, 20 Dec 2008 21:44:09 +0000 (23:44 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 5 Jan 2009 18:56:01 +0000 (19:56 +0100)
Signed-off-by: Lennart Poettering <lennart@poettering.net>
src/modules/rtp/module-rtp-send.c

index 8d1e92f..9c0f07f 100644 (file)
@@ -296,6 +296,11 @@ int pa__init(pa_module*m) {
             pa_log("IP_MULTICAST_TTL failed: %s", pa_cstrerror(errno));
             goto fail;
         }
+
+        if (setsockopt(sap_fd, IPPROTO_IP, IP_MULTICAST_TTL, &_ttl, sizeof(_ttl)) < 0) {
+            pa_log("IP_MULTICAST_TTL (sap) failed: %s", pa_cstrerror(errno));
+            goto fail;
+        }
     }
 
     /* If the socket queue is full, let's drop packets */