]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/ipv4/udp.c
[UDP]: Restore missing inDatagrams increments
[linux-2.6-omap-h63xx.git] / net / ipv4 / udp.c
index f50de5d5218ddce45c578f6f05a78de5e13ea8c0..78cfcb4a1b3fc0d69718392b6252c816fe445b6c 100644 (file)
  */
 
 DEFINE_SNMP_STAT(struct udp_mib, udp_statistics) __read_mostly;
+EXPORT_SYMBOL(udp_statistics);
 
 struct hlist_head udp_hash[UDP_HTABLE_SIZE];
 DEFINE_RWLOCK(udp_hash_lock);
@@ -969,8 +970,11 @@ int udp_queue_rcv_skb(struct sock * sk, struct sk_buff *skb)
                        int ret;
 
                        ret = (*up->encap_rcv)(sk, skb);
-                       if (ret <= 0)
+                       if (ret <= 0) {
+                               UDP_INC_STATS_BH(UDP_MIB_INDATAGRAMS,
+                                                is_udplite);
                                return -ret;
+                       }
                }
 
                /* FALLTHROUGH -- it's a UDP Packet */