Skip to content

Commit

Permalink
bridge: correct IPv6 checksum after pull
Browse files Browse the repository at this point in the history
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 <shemminger@vyatta.com>
Tested-by: Martin Volf <martin.volf.42@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
stephen hemminger authored and David S. Miller committed Nov 16, 2011
1 parent 0284a0f commit fa2da8c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/bridge/br_multicast.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit fa2da8c

Please sign in to comment.