Commit 3faab6f0 authored by Robert Rosengren's avatar Robert Rosengren Committed by Sebastian Dröge

netutils: Add IPv6 support to QoS DSCP

Added IPv6 support as already implemented in multiudpsink
(gst-plugins-good).
parent e54261c7
......@@ -60,6 +60,15 @@ gst_net_utils_set_socket_dscp (GSocket * socket, gint qos_dscp)
} else {
ret = TRUE;
}
#ifdef IPV6_TCLASS
if (g_socket_get_family (socket) == G_SOCKET_FAMILY_IPV6) {
if (setsockopt (fd, IPPROTO_IPV6, IPV6_TCLASS, &tos, sizeof (tos)) < 0) {
GST_ERROR ("could not set TCLASS: %s", g_strerror (errno));
} else {
ret = TRUE;
}
}
#endif
#endif
return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment