[<prev] [next>] [day] [month] [year] [list]
Message-ID: <AANLkTi=X3_fW9cB2nj6W=E9kivU_NfdbhGGh0Fvxbn4d@mail.gmail.com>
Date: Wed, 19 Jan 2011 11:02:52 +0100
From: Janek Wrobel <wrr@...gle.com>
To: netdev@...r.kernel.org
Subject: Altering default SO_PRIORITY of a socket.
Hi,
Does Linux allow to change default priority of listening or connected
sockets, without process ever calling setsockopt(..,SO_PRIORITY,..)?
In other words, in a following sequence of events, is it possible that
priority_a, or priority_b will ever be non 0 (assuming all calls
succeeded)?
sock = socket(AF_INET, SOCK_STREAM, 0);
bind(sock, some address)
listen(sock, ...)
int priority_a;
getsockopt(sock, SOL_SOCKET, SO_PRIORITY, &priority_a, sizeof(priority_a))
client_sock = accept(sock, ...);
int priority_b;
getsockopt(client_sock, SOL_SOCKET, SO_PRIORITY, &priority_b,
sizeof(priority_b))
thanks,
Janek
--
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