diff options
Diffstat (limited to 'net/ipv6/icmp.c')
-rw-r--r-- | net/ipv6/icmp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ipv6/icmp.c b/net/ipv6/icmp.c index 2a53a790514d..b4ff0a42b8c7 100644 --- a/net/ipv6/icmp.c +++ b/net/ipv6/icmp.c | |||
@@ -699,7 +699,7 @@ static int icmpv6_rcv(struct sk_buff *skb) | |||
699 | if (__skb_checksum_complete(skb)) { | 699 | if (__skb_checksum_complete(skb)) { |
700 | LIMIT_NETDEBUG(KERN_DEBUG "ICMPv6 checksum failed [%pI6 > %pI6]\n", | 700 | LIMIT_NETDEBUG(KERN_DEBUG "ICMPv6 checksum failed [%pI6 > %pI6]\n", |
701 | saddr, daddr); | 701 | saddr, daddr); |
702 | goto discard_it; | 702 | goto csum_error; |
703 | } | 703 | } |
704 | } | 704 | } |
705 | 705 | ||
@@ -785,6 +785,8 @@ static int icmpv6_rcv(struct sk_buff *skb) | |||
785 | kfree_skb(skb); | 785 | kfree_skb(skb); |
786 | return 0; | 786 | return 0; |
787 | 787 | ||
788 | csum_error: | ||
789 | ICMP6_INC_STATS_BH(dev_net(dev), idev, ICMP6_MIB_CSUMERRORS); | ||
788 | discard_it: | 790 | discard_it: |
789 | ICMP6_INC_STATS_BH(dev_net(dev), idev, ICMP6_MIB_INERRORS); | 791 | ICMP6_INC_STATS_BH(dev_net(dev), idev, ICMP6_MIB_INERRORS); |
790 | drop_no_count: | 792 | drop_no_count: |