mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
ipv6: added net argument to ICMP6_INC_STATS
Signed-off-by: Denis V. Lunev <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
821d57776d
commit
a862f6a6dc
3 changed files with 5 additions and 4 deletions
|
|
@ -1840,7 +1840,7 @@ static void igmp6_send(struct in6_addr *addr, struct net_device *dev, int type)
|
|||
out:
|
||||
if (!err) {
|
||||
ICMP6MSGOUT_INC_STATS(idev, type);
|
||||
ICMP6_INC_STATS(idev, ICMP6_MIB_OUTMSGS);
|
||||
ICMP6_INC_STATS(net, idev, ICMP6_MIB_OUTMSGS);
|
||||
IP6_INC_STATS(net, idev, IPSTATS_MIB_OUTMCASTPKTS);
|
||||
} else
|
||||
IP6_INC_STATS(net, idev, IPSTATS_MIB_OUTDISCARDS);
|
||||
|
|
|
|||
|
|
@ -522,7 +522,7 @@ static void __ndisc_send(struct net_device *dev,
|
|||
dst_output);
|
||||
if (!err) {
|
||||
ICMP6MSGOUT_INC_STATS(idev, type);
|
||||
ICMP6_INC_STATS(idev, ICMP6_MIB_OUTMSGS);
|
||||
ICMP6_INC_STATS(net, idev, ICMP6_MIB_OUTMSGS);
|
||||
}
|
||||
|
||||
if (likely(idev != NULL))
|
||||
|
|
@ -1586,7 +1586,7 @@ void ndisc_send_redirect(struct sk_buff *skb, struct neighbour *neigh,
|
|||
dst_output);
|
||||
if (!err) {
|
||||
ICMP6MSGOUT_INC_STATS(idev, NDISC_REDIRECT);
|
||||
ICMP6_INC_STATS(idev, ICMP6_MIB_OUTMSGS);
|
||||
ICMP6_INC_STATS(net, idev, ICMP6_MIB_OUTMSGS);
|
||||
}
|
||||
|
||||
if (likely(idev != NULL))
|
||||
|
|
|
|||
Loading…
Reference in a new issue