]> err.no Git - linux-2.6/blobdiff - net/ipv6/ip6mr.c
ftrace: limit trace entries
[linux-2.6] / net / ipv6 / ip6mr.c
index 6e2e3c957a315e36168f8c3207c2c85bed3c390a..2de3c464fe75b4e3bf1a57fd148dcc739d123761 100644 (file)
@@ -358,7 +358,7 @@ static int pim6_rcv(struct sk_buff *skb)
        if (pim->type != ((PIM_VERSION << 4) | PIM_REGISTER) ||
            (pim->flags & PIM_NULL_REGISTER) ||
            (ip_compute_csum((void *)pim, sizeof(*pim)) != 0 &&
-            (u16)csum_fold(skb_checksum(skb, 0, skb->len, 0))))
+            csum_fold(skb_checksum(skb, 0, skb->len, 0))))
                goto drop;
 
        /* check if the inner packet is destined to mcast group */
@@ -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);
 }