ip: Add offset parameter to ip_cmsg_recv
authorTom Herbert <therbert@google.com>
Mon, 5 Jan 2015 21:56:17 +0000 (13:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Jan 2015 03:44:46 +0000 (22:44 -0500)
commitad6f939ab193750cc94a265f58e007fb598c97b7
treef00a55adcedfde95441ed2ec498a2a294623522e
parent5961de9f199bef6ff437d7d85fe69b6a1964739b
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/inet_sock.h
include/uapi/linux/in.h
net/ipv4/ip_sockglue.c
net/ipv4/udp.c