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 for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:	Thu, 25 Aug 2011 14:52:05 -0700
From:	Rick Jones <rick.jones2@...com>
To:	netdev@...r.kernel.org
CC:	dave.taht@...il.com, amirv@....mellanox.co.il,
	mkt.manpages@...il.com, linux-man@...r.kernel.org
Subject: is SO_PRIORITY still supposed to affect the TOS field?

Amir Vadai recently sent me some patches for netperf to implement 
setting SO_PRIORITY.  I made changes to netperf based on those patches, 
(now in top of trunk on netperf.org) and between some emails with me, 
him and Dave Taht and some quick messing around while watching tcpdump, 
I'm wondering if this:

>       SO_PRIORITY
>               Set the protocol-defined priority for all packets to be sent  on
>               this  socket.   Linux  uses  this  value to order the networking
>               queues: packets with a higher priority may  be  processed  first
>               depending  on  the  selected  device  queueing  discipline.  For
>               ip(7), this also sets the IP  type-of-service  (TOS)  field  for
>               outgoing  packets.   Setting a priority outside the range 0 to 6
>               requires the CAP_NET_ADMIN capability.

from the socket(7) manpage is still accurate because even setting a 
number of different values for SO_PRIORITY I didn't see the TOS field as 
anything other than 0 in tcpdump output (confirming something Dave Taht 
saw).

happy benchmarking,

rick jones
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ