From d636a8c04607ecbd2f36367650deb62563e2a39c Mon Sep 17 00:00:00 2001 From: Tom Bamford Date: Sat, 20 Dec 2008 23:44:09 +0200 Subject: Multicast SDP packets sent with same IP TTL as RTP packets Signed-off-by: Lennart Poettering --- src/modules/rtp/module-rtp-send.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/modules/rtp/module-rtp-send.c b/src/modules/rtp/module-rtp-send.c index 280067a5..59d8b320 100644 --- a/src/modules/rtp/module-rtp-send.c +++ b/src/modules/rtp/module-rtp-send.c @@ -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 */ -- cgit