aboutsummaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorVlad Yasevich <[email protected]>2015-05-14 20:34:08 -0400
committerDavid S. Miller <[email protected]>2015-05-14 22:27:03 -0400
commite87a468eb97da35d8dc00e8fa9828b4de4ab69d0 (patch)
tree5ca5fa212bb94d7ec193e8903233967a4f4f9bae /net/switchdev/switchdev.c
parent91dd93f956b9ea9ecf47fd4b9acd2d2e7f980303 (diff)
ipv6: Fix udp checksums with raw sockets
It was reported that trancerout6 would cause a kernel to crash when trying to compute checksums on raw UDP packets. The cause was the check in __ip6_append_data that would attempt to use partial checksums on the packet. However, raw sockets do not initialize partial checksum fields so partial checksums can't be used. Solve this the same way IPv4 does it. raw sockets pass transhdrlen value of 0 to ip_append_data which causes the checksum to be computed in software. Use the same check in ip6_append_data (check transhdrlen). Reported-by: Wolfgang Walter <[email protected]> CC: Wolfgang Walter <[email protected]> CC: Eric Dumazet <[email protected]> Signed-off-by: Vladislav Yasevich <[email protected]> Acked-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions