Hi,
In net/core/sock.c the value for priority field of struct socket is
limitted to only 0 -6.
------ ox -----------------------------------------
int sock_setsockopt(.....)
.....
case SO_PRIORITY:
if ((val >= 0 && val <= 6) || capable(CAP_NET_ADMIN))
sk->priority = val;
else
ret = -EPERM;
break;
.....
------------- xc------------------------------------
Hence it is not possible to set the priority to more than 6 using the
setsockopt(SOL_SOCKET,SO_PRIORITY... system call.
Is there any reason why this value is limitted to 0-6 ?
I see that Telnet or FTP control channel set it to 6 and ICMP repplies set
it to 0 (some examples).
Thank you
Ravi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Mon Aug 07 2000 - 21:00:13 EST