📄 notes.txt
字号:
# NOTES.txt,v 1.1 2001/11/22 10:30:54 crodrigu ExpLinux notes===========Under Linux kernel 2.4, the following DSCP valuescould not be set with the setsockopt callunless you run as root:EF, CS5, CS6, CS7Also, under Linux 2.4.2 kernel, if I could successfullyset the 2 bits reserved for ECN in the Diffserv Field to 0x00 or 0x02. However, the setsockopt call wouldfail if it was set to 0x01 or 0x03.According to the Linux Diffserv mailing list:http://diffserv.sourceforge.nethttp://www.geocrawler.com/archives/3/11111/2001/10/0/6761099/===========================================================================On Fri, Oct 05, 2001 at 08:18:06AM +0300, Pekka Savola wrote:> On Tue, 2 Oct 2001, Craig Rodrigues wrote:> > Can someone shed some light as to why I got this> > error under Linux? Is it configuration problem,> > or is there some sort of policy decision in the kernel that> > requires the process to be run as root when setting> > those DSCP values?>> A part of DSCP field was previously Precedence.>> Linux has required that in order to use 'Critical' or higher Precedence,> one must have CAP_NET_ADMIN capability, in most cases, root.>> I'm not one to say whether this restriction should be removed. Perhaps.>> --> Pekka Savola "Tell me of difficulties surmounted,> Netcore Oy not those you stumble over and fall"> Systems. Networks. Security. -- Robert Jordan: A Crown of Swords>===========================================================================FreeBSD notes =============Under FreeBSD 4.3, I encountered no problemssetting DSCP or ECN values, and I could set allthese values without being root.However, FreeBSD seems to be more fussy about the size of the parameteryou pass into the setsockopt call. Make sure you get thesize right, and cast it properly, ie. don't cast a short, or someother size.Solaris notes=============No problems setting DSCP or ECN values.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -