Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
* [LARTC] Kernel patch for cls_u32.c
@ 2001-10-10 12:06 Thierry Coutelier
  0 siblings, 0 replies; only message in thread
From: Thierry Coutelier @ 2001-10-10 12:06 UTC (permalink / raw)
  To: lartc

To solve a problem while listing filters you may add this patch.
It works for all kernel versions from  2.4.6 to 2.4.11
It wold be cool to have it in the next kernel release.

---
diff -ur 2.4.6/linux/net/sched/cls_u32.c linux/net/sched/cls_u32.c
--- 2.4.6/linux/net/sched/cls_u32.c Thu Feb  1 23:06:10 2001
+++ linux/net/sched/cls_u32.c Wed Jul 11 23:55:23 2001
@@ -613,7 +613,8 @@

  for (ht = tp_c->hlist; ht; ht = ht->next) {
   if (arg->count >= arg->skip) {
-   if (arg->fn(tp, (unsigned long)ht, arg) < 0) {
+   if (ht = tp->root &&
+       arg->fn(tp, (unsigned long)ht, arg) < 0) {
     arg->stop = 1;
     return;
    }
@@ -625,7 +626,8 @@
      arg->count++;
      continue;
     }
-    if (arg->fn(tp, (unsigned long)n, arg) < 0) {
+    if (ht = tp->root &&
+        arg->fn(tp, (unsigned long)n, arg) < 0) {
      arg->stop = 1;
      return;
     }

---

Thierry.Coutelier@linux.lu
http://www.linux.lu


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-10-10 12:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-10 12:06 [LARTC] Kernel patch for cls_u32.c Thierry Coutelier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox