diff options
author | Pavel Emelyanov <xemul@parallels.com> | 2012-02-21 11:32:06 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-02-22 00:03:58 +0400 |
commit | fc0d753641f7b919c7273d9bd21ae6ab45e757f3 (patch) | |
tree | 75ad4f14627fa05d39533177523dfd3d2454fa68 /arch/mips | |
parent | f55bb7f9cb82dec2f2e803d7bd0fc5929248e4d8 (diff) | |
download | linux-fc0d753641f7b919c7273d9bd21ae6ab45e757f3.tar.xz |
unix: Support peeking offset for stream sockets
The same here -- we can protect the sk_peek_off manipulations with
the unix_sk->readlock mutex.
The peeking of data from a stream socket is done in the datagram style,
i.e. even if there's enough room for more data in the user buffer, only
the head skb's data is copied in there. This feature is preserved when
peeking data from a given offset -- the data is read till the nearest
skb's boundary.
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/mips')
0 files changed, 0 insertions, 0 deletions