aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/rtnetlink.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2015-01-05 22:44:56 -0500
committerDavid S. Miller <davem@davemloft.net>2015-01-05 22:44:56 -0500
commitd4253c6258912057b33190a113d490f295c93352 (patch)
treef00a55adcedfde95441ed2ec498a2a294623522e /net/core/rtnetlink.c
parentnetlink: Warn on unordered or illegal nla_nest_cancel() or nlmsg_cancel() (diff)
parentip: Add offset parameter to ip_cmsg_recv (diff)
downloadlinux-dev-d4253c6258912057b33190a113d490f295c93352.tar.xz
linux-dev-d4253c6258912057b33190a113d490f295c93352.zip
Merge branch 'ip_cmsg_csum'
Tom Herbert says: ==================== ip: Support checksum returned in csmg This patch set allows the packet checksum for a datagram socket to be returned in csum data in recvmsg. This allows userspace to implement its own checksum over the data, for instance if an IP tunnel was be implemented in user space, the inner checksum could be validated. Changes in this patch set: - Move checksum conversion to inet_sock from udp_sock. This generalizes checksum conversion for use with other protocols. - Move IP cmsg constants to a header file and make processing of the flags more efficient in ip_cmsg_recv - Return checksum value in cmsg. This is specifically the unfolded 32 bit checksum of the full packet starting from the first byte returned in recvmsg Tested: Wrote a little server to get checksums in cmsg for UDP and verfied correct checksum is returned. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions