Skip to contentSkip to conversation

Question regarding IP_TOS and SO_PRIORITY

DISCUSSION Holger Freyther 1 participant 1 message May 25, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.