From: stephen hemminger Date: Tue, 15 Nov 2011 08:09:14 +0000 (+0000) Subject: bridge: correct IPv6 checksum after pull X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fa2da8cdae1dd64f78fc915ca1d1a4a93c71e7cb;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git bridge: correct IPv6 checksum after pull Bridge multicast snooping of ICMPv6 would incorrectly report a checksum problem when used with Ethernet devices like sky2 that use CHECKSUM_COMPLETE. When bytes are removed from skb, the computed checksum needs to be adjusted. Signed-off-by: Stephen Hemminger Tested-by: Martin Volf Signed-off-by: David S. Miller --- diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c index 2eefe275b33..a5f4e576980 100644 --- a/net/bridge/br_multicast.c +++ b/net/bridge/br_multicast.c @@ -1501,6 +1501,8 @@ static int br_multicast_ipv6_rcv(struct net_bridge *br, __skb_pull(skb2, offset); skb_reset_transport_header(skb2); + skb_postpull_rcsum(skb2, skb_network_header(skb2), + skb_network_header_len(skb2)); icmp6_type = icmp6_hdr(skb2)->icmp6_type;