ip: Add offset parameter to ip_cmsg_recv
authorTom Herbert <therbert@google.com>
Mon, 5 Jan 2015 21:56:16 +0000 (13:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Jan 2015 03:44:46 +0000 (22:44 -0500)
commit5961de9f199bef6ff437d7d85fe69b6a1964739b
tree153942fe128647a10b312beaf546ea791a0558b3
parentc44d13d6f341ca59f3d6646f2337d4d3c8a814a6
ip: Add offset parameter to ip_cmsg_recv

Add ip_cmsg_recv_offset function which takes an offset argument
that indicates the starting offset in skb where data is being received
from. This will be useful in the case of UDP and provided checksum
to user space.

ip_cmsg_recv is an inline call to ip_cmsg_recv_offset with offset of
zero.

Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip.h
net/ipv4/ip_sockglue.c