diff options
Diffstat (limited to 'net/ipv6/icmp.c')
-rw-r--r-- | net/ipv6/icmp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv6/icmp.c b/net/ipv6/icmp.c index b3157a0cc15d..9b7d19ae5ced 100644 --- a/net/ipv6/icmp.c +++ b/net/ipv6/icmp.c | |||
@@ -183,7 +183,7 @@ static inline int icmpv6_xrlim_allow(struct sock *sk, int type, | |||
183 | */ | 183 | */ |
184 | dst = ip6_route_output(net, sk, fl); | 184 | dst = ip6_route_output(net, sk, fl); |
185 | if (dst->error) { | 185 | if (dst->error) { |
186 | IP6_INC_STATS(ip6_dst_idev(dst), | 186 | IP6_INC_STATS(net, ip6_dst_idev(dst), |
187 | IPSTATS_MIB_OUTNOROUTES); | 187 | IPSTATS_MIB_OUTNOROUTES); |
188 | } else if (dst->dev && (dst->dev->flags&IFF_LOOPBACK)) { | 188 | } else if (dst->dev && (dst->dev->flags&IFF_LOOPBACK)) { |
189 | res = 1; | 189 | res = 1; |
@@ -664,7 +664,7 @@ static int icmpv6_rcv(struct sk_buff *skb) | |||
664 | skb_set_network_header(skb, nh); | 664 | skb_set_network_header(skb, nh); |
665 | } | 665 | } |
666 | 666 | ||
667 | ICMP6_INC_STATS_BH(idev, ICMP6_MIB_INMSGS); | 667 | ICMP6_INC_STATS_BH(dev_net(dev), idev, ICMP6_MIB_INMSGS); |
668 | 668 | ||
669 | saddr = &ipv6_hdr(skb)->saddr; | 669 | saddr = &ipv6_hdr(skb)->saddr; |
670 | daddr = &ipv6_hdr(skb)->daddr; | 670 | daddr = &ipv6_hdr(skb)->daddr; |
@@ -693,7 +693,7 @@ static int icmpv6_rcv(struct sk_buff *skb) | |||
693 | 693 | ||
694 | type = hdr->icmp6_type; | 694 | type = hdr->icmp6_type; |
695 | 695 | ||
696 | ICMP6MSGIN_INC_STATS_BH(idev, type); | 696 | ICMP6MSGIN_INC_STATS_BH(dev_net(dev), idev, type); |
697 | 697 | ||
698 | switch (type) { | 698 | switch (type) { |
699 | case ICMPV6_ECHO_REQUEST: | 699 | case ICMPV6_ECHO_REQUEST: |
@@ -772,7 +772,7 @@ static int icmpv6_rcv(struct sk_buff *skb) | |||
772 | return 0; | 772 | return 0; |
773 | 773 | ||
774 | discard_it: | 774 | discard_it: |
775 | ICMP6_INC_STATS_BH(idev, ICMP6_MIB_INERRORS); | 775 | ICMP6_INC_STATS_BH(dev_net(dev), idev, ICMP6_MIB_INERRORS); |
776 | drop_no_count: | 776 | drop_no_count: |
777 | kfree_skb(skb); | 777 | kfree_skb(skb); |
778 | return 0; | 778 | return 0; |