datagram: Add offset argument to __skb_recv_datagram
authorPavel Emelyanov <xemul@parallels.com>
Tue, 21 Feb 2012 07:30:58 +0000 (07:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Feb 2012 19:58:57 +0000 (14:58 -0500)
commit3f518bf745cbd6007d8069100fb9cb09e960c872
treedebbe9e9340d46080f1b82e4149a2427545c4aef
parent4934b0329f7150dcb5f90506860e2db32274c755
datagram: Add offset argument to __skb_recv_datagram

This one is only considered for MSG_PEEK flag and the value pointed by
it specifies where to start peeking bytes from. If the offset happens to
point into the middle of the returned skb, the offset within this skb is
put back to this very argument.

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>
include/linux/skbuff.h
net/core/datagram.c
net/ipv4/udp.c
net/ipv6/udp.c