lkml.org 
[lkml]   [2008]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] [net-2.6.26] [IPV6] Add stats in multicast routing module method ip6_mr_forward().
Hi,
This patches adds a call to increment IPSTATS_MIB_OUTFORWDATAGRAMS
when forwarding the packet in ip6_mr_forward() in the IPv6
multicast routing module (net/ipv6/ip6mr.c).


Regards,
Rami Rosen


Signed-off-by: Rami Rosen <ramirose@gmail.com>
diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c
index da673ef..e3ac606 100644
--- a/net/ipv6/ip6mr.c
+++ b/net/ipv6/ip6mr.c
@@ -1368,7 +1368,7 @@ int ip6mr_ioctl(struct sock *sk, int cmd, void __user *arg)

static inline int ip6mr_forward2_finish(struct sk_buff *skb)
{
- /* XXX stats */
+ IP6_INC_STATS_BH(ip6_dst_idev(skb->dst), IPSTATS_MIB_OUTFORWDATAGRAMS);
return dst_output(skb);
}
\
 
 \ /
  Last update: 2008-04-10 20:23    [W:0.035 / U:0.920 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site