TTL settings on OSX - gst-plugins-good - gst/udp/gstudpnetutils.c
Dirk-Willem van Gulik
dirkx at webweaving.org
Fri Oct 12 04:45:05 PDT 2012
Currently one has below snippet in
st-plugins-good: gst/udp/gstudpnetutils.c
gst_udp_set_ttl (int sockfd, guint16 ss_family, int ttl, gboolean is_multicast)
...
case AF_INET6:
{
set multicast on socket per normal
…
/* When using IPV4 address with IPV6 socket, both TTL values
must be set in order to actually use the given value.
Has no effect when IPV6 address is used.
*/
optname = (is_multicast == TRUE) ? IP_MULTICAST_TTL : IP_TTL;
ret = setsockopt (sockfd, IPPROTO_IP, optname, &ttl, sizeof (ttl));
…
GST_DEBUG ("Error on setsockopt(IPPROTO_IP) with option %s to %d in IPv6 addr",
(is_multicast == TRUE) ? "IP_MULTICAST_TTL" : "IP_TTL", ttl);
On OSX however this does have an effect - it seems to always bomb when is_multicast is true. What is the thinking behind this ?
Dw
More information about the gstreamer-devel
mailing list