[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ingress



Hi everyone!

First,the bug is in the sch_ingress.c . Because the program's writers has
forgotten to write this part.
I`ve attached  a patch, after patching it should work.

			Tamas
-----------------------------------------------------------------------
E-mails: regost@poboxes.com           
         regost@qosip.ttt.bme.hu      
--- sch_ingress.c	Mon Mar 20 12:34:01 2000
+++ sch_ingress.c	Tue Mar 28 10:58:44 2000
@@ -144,6 +144,12 @@
          skb->tc_index = TC_H_MIN(res.classid);
 #endif
 
+	if (result == FW_BLOCK) {
+		sch->stats.drops++;
+		return result;
+	}
+	sch->stats.bytes += skb->len;
+	sch->stats.packets++;
 	return result;
 }