|| ||Pavel Emelyanov <xemul-AT-parallels.com> |
|| ||David Miller <davem-AT-davemloft.net>,
Eric Dumazet <eric.dumazet-AT-gmail.com>,
Linux Netdev List <netdev-AT-vger.kernel.org> |
|| ||[PATCH net-next 0/6] Ability to peek full socket queue |
|| ||Tue, 21 Feb 2012 21:30:06 +0400|
|| ||Article, Thread
This is an attempt to implement the ability to read socket's queue without
removing skbs from it. Using MSG_PEEK doesn't work for unix sockets, both
dgram and stream.
The proposal is to implement the SO_PEEK_OFF sockopt which specifies an
offset in bytes where to start peeking the data from.
I've already sent an example of how this can look, and since nobody objected
about the concept itself, here's the "official" v1. This includes all the unix
socket types and (hopefully) addresses locking issues David pointed out.
Signed-off-by: Pavel Emelyanov <firstname.lastname@example.org>
to post comments)