aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/ipv6/icmp.c2
-rw-r--r--net/ipv6/ip6_output.c4
-rw-r--r--net/ipv6/mcast.c11
-rw-r--r--net/ipv6/ping.c4
4 files changed, 11 insertions, 10 deletions
diff --git a/net/ipv6/icmp.c b/net/ipv6/icmp.c
index f2610e157660..7b326529e6a2 100644
--- a/net/ipv6/icmp.c
+++ b/net/ipv6/icmp.c
@@ -520,7 +520,7 @@ static void icmp6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info)
520 np->tclass, NULL, &fl6, (struct rt6_info *)dst, 520 np->tclass, NULL, &fl6, (struct rt6_info *)dst,
521 MSG_DONTWAIT, np->dontfrag); 521 MSG_DONTWAIT, np->dontfrag);
522 if (err) { 522 if (err) {
523 ICMP6_INC_STATS_BH(net, idev, ICMP6_MIB_OUTERRORS); 523 ICMP6_INC_STATS(net, idev, ICMP6_MIB_OUTERRORS);
524 ip6_flush_pending_frames(sk); 524 ip6_flush_pending_frames(sk);
525 } else { 525 } else {
526 err = icmpv6_push_pending_frames(sk, &fl6, &tmp_hdr, 526 err = icmpv6_push_pending_frames(sk, &fl6, &tmp_hdr,
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c
index 6184dfa4e4d7..3284d61577c0 100644
--- a/net/ipv6/ip6_output.c
+++ b/net/ipv6/ip6_output.c
@@ -1567,8 +1567,8 @@ int ip6_push_pending_frames(struct sock *sk)
1567 if (proto == IPPROTO_ICMPV6) { 1567 if (proto == IPPROTO_ICMPV6) {
1568 struct inet6_dev *idev = ip6_dst_idev(skb_dst(skb)); 1568 struct inet6_dev *idev = ip6_dst_idev(skb_dst(skb));
1569 1569
1570 ICMP6MSGOUT_INC_STATS_BH(net, idev, icmp6_hdr(skb)->icmp6_type); 1570 ICMP6MSGOUT_INC_STATS(net, idev, icmp6_hdr(skb)->icmp6_type);
1571 ICMP6_INC_STATS_BH(net, idev, ICMP6_MIB_OUTMSGS); 1571 ICMP6_INC_STATS(net, idev, ICMP6_MIB_OUTMSGS);
1572 } 1572 }
1573 1573
1574 err = ip6_local_out(skb); 1574 err = ip6_local_out(skb);
diff --git a/net/ipv6/mcast.c b/net/ipv6/mcast.c
index e1e47350784b..08b367c6b9cf 100644
--- a/net/ipv6/mcast.c
+++ b/net/ipv6/mcast.c
@@ -1620,11 +1620,12 @@ static void mld_sendpack(struct sk_buff *skb)
1620 dst_output); 1620 dst_output);
1621out: 1621out:
1622 if (!err) { 1622 if (!err) {
1623 ICMP6MSGOUT_INC_STATS_BH(net, idev, ICMPV6_MLD2_REPORT); 1623 ICMP6MSGOUT_INC_STATS(net, idev, ICMPV6_MLD2_REPORT);
1624 ICMP6_INC_STATS_BH(net, idev, ICMP6_MIB_OUTMSGS); 1624 ICMP6_INC_STATS(net, idev, ICMP6_MIB_OUTMSGS);
1625 IP6_UPD_PO_STATS_BH(net, idev, IPSTATS_MIB_OUTMCAST, payload_len); 1625 IP6_UPD_PO_STATS(net, idev, IPSTATS_MIB_OUTMCAST, payload_len);
1626 } else 1626 } else {
1627 IP6_INC_STATS_BH(net, idev, IPSTATS_MIB_OUTDISCARDS); 1627 IP6_INC_STATS(net, idev, IPSTATS_MIB_OUTDISCARDS);
1628 }
1628 1629
1629 rcu_read_unlock(); 1630 rcu_read_unlock();
1630 return; 1631 return;
diff --git a/net/ipv6/ping.c b/net/ipv6/ping.c
index 587bbdcb22b4..bda74291c3e0 100644
--- a/net/ipv6/ping.c
+++ b/net/ipv6/ping.c
@@ -182,8 +182,8 @@ int ping_v6_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
182 MSG_DONTWAIT, np->dontfrag); 182 MSG_DONTWAIT, np->dontfrag);
183 183
184 if (err) { 184 if (err) {
185 ICMP6_INC_STATS_BH(sock_net(sk), rt->rt6i_idev, 185 ICMP6_INC_STATS(sock_net(sk), rt->rt6i_idev,
186 ICMP6_MIB_OUTERRORS); 186 ICMP6_MIB_OUTERRORS);
187 ip6_flush_pending_frames(sk); 187 ip6_flush_pending_frames(sk);
188 } else { 188 } else {
189 err = icmpv6_push_pending_frames(sk, &fl6, 189 err = icmpv6_push_pending_frames(sk, &fl6,