summaryrefslogtreecommitdiffstats
path: root/src/modules/rtp/module-rtp-send.c
diff options
context:
space:
mode:
authorTom Bamford <tom@tombamford.co.uk>2008-12-20 23:44:09 +0200
committerLennart Poettering <lennart@poettering.net>2009-01-05 19:56:01 +0100
commitfe2b8c359b505dfa4c5fb75f223fc35c7ecdfd4b (patch)
treedfb6635d89102fa9e340ba173ce291d36b27b120 /src/modules/rtp/module-rtp-send.c
parentf24e4c19c33b534e5f15d6ae227d07ae7755e644 (diff)
Multicast SDP packets sent with same IP TTL as RTP packets
Signed-off-by: Lennart Poettering <lennart@poettering.net>
Diffstat (limited to 'src/modules/rtp/module-rtp-send.c')
-rw-r--r--src/modules/rtp/module-rtp-send.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/rtp/module-rtp-send.c b/src/modules/rtp/module-rtp-send.c
index 8d1e92fe..9c0f07f1 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 */