Skip to content

Commit

Permalink
[IPV6] MROUTE: Add stats in multicast routing module method ip6_mr_fo…
Browse files Browse the repository at this point in the history
…rward().

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).

Signed-off-by: Rami Rosen <[email protected]>
Signed-off-by: YOSHIFUJI Hideaki <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
ramirosen authored and davem330 committed Apr 14, 2008
1 parent 0b18542 commit 0912ea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv6/ip6mr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,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);
}

Expand Down

0 comments on commit 0912ea3

Please sign in to comment.