Commit a697e50c authored by Olivier Crête's avatar Olivier Crête
Browse files

agent: Improve ToS setting debug errors

parent 1ec6761e
......@@ -2915,14 +2915,14 @@ _priv_set_socket_opts (NiceAgent *agent, NiceSocket *sock, Stream *stream)
{
if (setsockopt (g_socket_get_fd (sock->fileno), IPPROTO_IP,
IP_TOS, (const char *) &stream->tos, sizeof (stream->tos)) < 0) {
nice_debug ("Agent %p: Could not set socket ToS", agent,
g_strerror (errno));
nice_debug ("Agent %p: Could not set socket ToS to 0x%X: %s", agent,
stream->tos, g_strerror (errno));
}
#ifdef IPV6_TCLASS
if (setsockopt (g_socket_get_fd (sock->fileno), IPPROTO_IPV6,
IPV6_TCLASS, (const char *) &stream->tos, sizeof (stream->tos)) < 0) {
nice_debug ("Agent %p: Could not set IPV6 socket ToS", agent,
g_strerror (errno));
nice_debug ("Agent %p: Could not set IPV6 socket ToS to 0x%X: %s", agent,
stream->tos, g_strerror (errno));
}
#endif
}
......
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