aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorTom Herbert <therbert@google.com>2015-01-05 13:56:17 -0800
committerDavid S. Miller <davem@davemloft.net>2015-01-05 22:44:46 -0500
commitad6f939ab193750cc94a265f58e007fb598c97b7 (patch)
treef00a55adcedfde95441ed2ec498a2a294623522e /include/uapi
parentip: Add offset parameter to ip_cmsg_recv (diff)
downloadlinux-dev-ad6f939ab193750cc94a265f58e007fb598c97b7.tar.xz
linux-dev-ad6f939ab193750cc94a265f58e007fb598c97b7.zip
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>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/in.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/in.h b/include/uapi/linux/in.h
index c33a65e3d62c..589ced069e8a 100644
--- a/include/uapi/linux/in.h
+++ b/include/uapi/linux/in.h
@@ -109,6 +109,7 @@ struct in_addr {
#define IP_MINTTL 21
#define IP_NODEFRAG 22
+#define IP_CHECKSUM 23
/* IP_MTU_DISCOVER values */
#define IP_PMTUDISC_DONT 0 /* Never send DF frames */