SO_PRIORITY and IP_TOS socket options

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
    According to the man page socket(7), setting SO_PRIORITY (and
hence sk->sk_priority) on a socket should alter the TOS field of the
outgoing packets. However, in linux-2.6.14, the code in
net/ipv4/ip_output.c:ip_queue_xmit fills the value of the IP header's
tos using inet->tos (which is set using the IP_TOS socket options). I
want to say that sk_priority is used for local queues only and IP_TOS
needs to be set for actually modifying the outgoing packets' TOS. Is
this the case?

Ritesh

--
http://www.cs.unc.edu/~ritesh/
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux