Question regarding IP_TOS and SO_PRIORITY

From: Holger Freyther <hidden>
Date: 2010-05-25 21:40:05

Hi all,

I have a minor question regarding the IP_TOS and SO_PRIORITY socket
options. I was reading the man page for ip(7) and it pointed me to
socket(7) to look at the SO_PRIORITY. My man page claims that setting
the SO_PRIORITY will also set the tos on the outgoing IP header.

The problem is that I couldn't see the TOS set in my outgoing packets
and I was not able to find the code propagating the sk_priority into the
tos. On the other hand I could find that setting the IP_TOS will also
set the sk_priority.

Is this a documentation bug? Or did it work once? Or is it working and
my code was just broken and I'm too blind to find it?

z.

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help