[sr-dev] [kamailio/kamailio] rtpengine: setting tos value for the control commands (#1442)
hdikme
notifications at github.com
Mon Feb 19 17:07:20 CET 2018
hdikme commented on this pull request.
> @@ -1675,6 +1677,19 @@ static int build_rtpp_socks() {
LM_WARN("Failed enable set MTU discovery socket option\n");
#endif
+ if((0 <= control_cmd_tos) && (control_cmd_tos < 256)) {
+ if (pnode->rn_umode == 6) {
+ setsockopt(rtpp_socks[pnode->idx], IPPROTO_IPV6,
+ IPV6_TCLASS, &control_cmd_tos,
+ sizeof(control_cmd_tos));
+
+ } else {
+ setsockopt(rtpp_socks[pnode->idx], IPPROTO_IP,
+ IP_TOS, &control_cmd_tos,
+ sizeof(control_cmd_tos));
I have updated the code based on your review, if anything needs to be changed let me know please. Thanks for the review.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1442#discussion_r169117591
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20180219/84708b64/attachment-0001.html>
More information about the sr-dev
mailing list