From 8f3d9691d895b746b66877f7e45a48750ddaf4cb Mon Sep 17 00:00:00 2001 From: Mikolaj Malecki Date: Mon, 23 Dec 2024 11:25:32 +0100 Subject: [PATCH] Updated documentation. Fixed unused warning --- docs/API/API-socket-options.md | 4 ++++ srtcore/channel.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/API/API-socket-options.md b/docs/API/API-socket-options.md index 3291f6e27..fed2a5b5a 100644 --- a/docs/API/API-socket-options.md +++ b/docs/API/API-socket-options.md @@ -614,6 +614,8 @@ See [`SRTO_INPUTBW`](#SRTO_INPUTBW). IPv4 Type of Service (see `IP_TOS` option for IP) or IPv6 Traffic Class (see `IPV6_TCLASS` of IPv6) depending on socket address family. Applies to sender only. +NOTE: This option has been tested to work correctly on Linux only. + When *getting*, the returned value is the user preset for non-connected sockets and the actual value for connected sockets. @@ -632,6 +634,8 @@ and the actual value for connected sockets. IPv4 Time To Live (see `IP_TTL` option for IP) or IPv6 unicast hops (see `IPV6_UNICAST_HOPS` for IPv6) depending on socket address family. Applies to sender only. +NOTE: This option has been tested to work correctly on Linux only. + When *getting*, the returned value is the user preset for non-connected sockets and the actual value for connected sockets. diff --git a/srtcore/channel.cpp b/srtcore/channel.cpp index aaf0d212e..0ec8f090f 100644 --- a/srtcore/channel.cpp +++ b/srtcore/channel.cpp @@ -472,7 +472,7 @@ void srt::CChannel::setUDPSockOpt() { // If IPv6 address is unspecified, set BOTH IP_TOS and IPV6_TCLASS. - bool using_tclass = false; + SRT_ATR_UNUSED bool using_tclass = false; #ifdef IPV6_TCLASS using_tclass = true; // For specified IPv6 address, set IPV6_TCLASS ONLY UNLESS it's an IPv4-mapped-IPv6