[asterisk-bugs] [JIRA] (ASTERISK-6863) [patch] allow Asterisk to set high ToS bits as non-root on Linux

Asterisk Team (JIRA) noreply at issues.asterisk.org
Wed Sep 9 11:10:44 CDT 2020


     [ https://issues.asterisk.org/jira/browse/ASTERISK-6863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Asterisk Team updated ASTERISK-6863:
------------------------------------

    Target Release Version/s: 18.0.0

> [patch] allow Asterisk to set high ToS bits as non-root on Linux
> ----------------------------------------------------------------
>
>                 Key: ASTERISK-6863
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-6863
>             Project: Asterisk
>          Issue Type: New Feature
>          Components: Core/General
>            Reporter: Matt Addison
>              Labels: patch
>      Target Release: 13.33.0, 16.10.0, 17.4.0, 18.0.0
>
>         Attachments: 20060612__bug7047.diff.txt, 20060905__bug7047__2.diff.txt, 20060905__bug7047.diff.txt, asterisk.linux.posix1e200604271654.patch
>
>
> By default, Linux restricts the ability of non-root users to set the high ToS bits for IP precedence/DSCP. Not being able to set these bits prevents users from classifying and prioritizing VoIP traffic on some routing equipment (any Cisco GSR line card that doesn't run Engine3 for example.). With some quick changes to asterisk.c and an extra library (libcap) we can have asterisk keep the cap_net_admin capability which permits it to set the high ToS bits. Tested on Linux (debian). Should compile cleanly on other platforms, including linux without libcap (in which case the feature should auto-omit itself through #ifndefs).



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list