lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200912181620.33190.schmto@hrz.tu-chemnitz.de>
Date:	Fri, 18 Dec 2009 16:20:33 +0100
From:	Torsten Schmidt <torsten.schmidt@...06.tu-chemnitz.de>
To:	"Philip A. Prindeville" <philipp_subx@...fish-solutions.com>,
	netdev@...r.kernel.org
Subject: Re: Still using IPTOS_TOS() in kernel? Really???

On Thursday 17 December 2009 20:45:32 you wrote:
> On 12/17/2009 08:24 AM, Torsten Schmidt wrote:
> > Hi Philip,
> >
> > interesting .. i am on the way to implement a DSCP/CS statistic to the
> > kernel. We need this for network traffic accounting. The concept is the
> > following:
> >
> > We create a virtual file /pro/net/ipdscp , this includes several DSCP/CS
> > counters. See http://www.iana.org/assignments/dscp-registry/. Every time
> > ip_rcv_finish() is called, we take a look at the DSCP/CS (iph->tos) value
> > and increment the related counter. If you're interested in, i will send
> > you a patch ? ..
> 
> That would be great.

Here is a first PATCH, tested against 2.6.32. At the time we only support DSCP 
class: CS0 and EF PHB. All other classes are shown in /proc/net/ipdscp, but 
always referenced with 0. Please take a look at ... 

For debugging use:
  # ping -Q 0xAB localhost
  # cat /pro/net/ipdscp

in which 0xAB is:
  0x00 for CS0, ore
  0xB8 for EF PHB

Torsten

View attachment "0001-ipv4-add-DSCP-statistic.patch" of type "text/x-patch" (10192 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ