Multicast SDP packets sent with same IP TTL as RTP packets

Signed-off-by: Lennart Poettering <lennart@poettering.net>
This commit is contained in:
Tom Bamford 2008-12-20 23:44:09 +02:00 committed by Lennart Poettering
parent f24e4c19c3
commit fe2b8c359b

View file

@ -296,6 +296,11 @@ int pa__init(pa_module*m) {
pa_log("IP_MULTICAST_TTL failed: %s", pa_cstrerror(errno)); pa_log("IP_MULTICAST_TTL failed: %s", pa_cstrerror(errno));
goto fail; 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 */ /* If the socket queue is full, let's drop packets */